Verify Google One Tap ID Token and generate magic link
Verify the Google One Tap ID Token, check if the user exists, and generate a magic link for authentication. If the user exists, generates a login magic link; otherwise, generates a registration magic link.
GET
/api/google-one-tap/verify
curl \
--request GET 'https://[tenant_id].logto.app/api/google-one-tap/verify?idToken=string' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"oneTimeToken": "string",
"isNewUser": true,
"email": "string"
}