Skip to main content
POST
Login

Email / Password Login

Endpoint

Request Body

string
required
Registered email address
string
required
Account password

Example Request

Provider Login (Google / GitHub)

Exchange a Firebase-issued ID token or OAuth access token.

Endpoint

Request Body

string
required
OAuth provider: google or github
string
Firebase ID token obtained from the provider. Use this OR access_token.
string
OAuth access token from the provider. Use this OR id_token.

Example Request

Response

Both endpoints return the same response shape.
string
Firebase ID token (JWT). Use as Authorization: Bearer <id_token>.
string
Refresh token. Use with /auth/refresh to get a new ID token.
number
Seconds until the ID token expires (3600 = 1 hour).
string
Authenticated email address.
string
Firebase user ID.

Success Response (200)

Error Responses

Token Refresh

Use the refresh token to obtain a new ID token before the current one expires.

Endpoint

Request Body

string
required
Refresh token from a previous login or register response

Example

Using the Token

Include the id_token in all authenticated API requests: