Skip to main content
Authenticate a user via Google Sign-In by providing a Google access token.

POST /auth/google/signin

Request Body

ParameterTypeRequiredDescription
access_tokenstringYesValid Google OAuth2 access token.
emailstringYesUser’s email address associated with the token.
namestringYesUser’s full name.
external_idstringYesUser’s unique Google ID.

Response

ParameterTypeDescription
access_tokenstringShort-lived JWT access token for API access.
refresh_tokenstringLong-lived JWT refresh token.
expires_atintegerTimestamp (ms) when the access token expires.

Example

{
  "access_token": "ya29.a0...",
  "email": "jane@example.com",
  "name": "Jane Doe",
  "external_id": "1234567890"
}