Skip to main content
POST
/
auth
/
google
Authenticate with Google
curl --request POST \
  --url http://localhost:3000/auth/google \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "idToken": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "accessToken": "<string>",
    "refreshToken": "<string>",
    "user": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "jsmith@example.com",
      "name": "<string>",
      "avatar_url": "<string>",
      "auth_provider": "<string>"
    },
    "organization": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "needs_onboarding": true,
    "invite_accepted": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
idToken
string
required
Minimum string length: 1

Response

Default Response

statusCode
number
message
string
default:OK
data
object