Creates a session cookie from a Firebase ID token. The cookie is set in the response headers and is valid for 5 days.
cURL
curl --request POST \ --url http://localhost:3000/api/auth/session \ --header 'Content-Type: application/json' \ --data ' { "idToken": "<string>" } '
{ "status": "success" }
Firebase ID token to create session from
Session created successfully. A session cookie is set in the response headers.
Status of the session creation
success