Sign in with Google
Auth
Sign in with Google
Authenticate or register a user using a Google OAuth ID token.
POST
Sign in with Google
Authenticates a user with a Google OAuth
idToken. If no account exists for the given token, a new user is created. Returns a JWT token on success.
This endpoint does not require authentication.
Request body
The Google OAuth ID token obtained from the Firebase Google sign-in flow. This value is hashed (SHA-256, truncated to 24 hex chars) to derive the user’s internal ID.
The user’s email address as returned by Google. Used to detect duplicate accounts registered via a different method.
The user’s display name as returned by Google. Stored on the user record when creating a new account.
Response
200 — Success
Returned whether the user already existed or was newly created.A signed JWT valid for 1000 days. Pass this value in the
x-access'courser-auth-token header on authenticated requests.Always
"Login successful".409 — Email already in use
Returned when a different account (registered without Google) already uses the same email address."Email already in use"Example
200
409