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
}
}Verify a Google ID token and issue JWT tokens. Handles returning users, invited users, and new user creation.
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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
1