Skip to main content
POST
/
auth
/
session
Create Session
curl --request POST \
  --url http://localhost:3000/api/auth/session \
  --header 'Content-Type: application/json' \
  --data '
{
  "idToken": "<string>"
}
'
{
  "status": "success"
}

Body

application/json
idToken
string
required

Firebase ID token to create session from

Response

Session created successfully. A session cookie is set in the response headers.

status
enum<string>
required

Status of the session creation

Available options:
success