curl --request POST \
--url http://localhost:8000/api/v1/google-auth/signin-with-google \
--header 'Content-Type: application/json' \
--data '
{
"id_token": "<string>"
}
'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"access_token": "<string>",
"is_google_recaptcha_response_valid": true,
"token_type": "bearer"
}Sign in with Google using ID token.
Args: body (GoogleIDTokenSignInRequest): Request containing Google ID token
Returns: UserLoggedInSchema: User data with JWT access token
curl --request POST \
--url http://localhost:8000/api/v1/google-auth/signin-with-google \
--header 'Content-Type: application/json' \
--data '
{
"id_token": "<string>"
}
'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"access_token": "<string>",
"is_google_recaptcha_response_valid": true,
"token_type": "bearer"
}The schema for Google ID token sign-in request.
Successful Response
The schema for a logged-in user.