googleVerifySSOToken Mutation
Description
Verifies a Google SSO token and extracts user information without creating a session.
mutation googleVerifySSOToken($jwt: String!, $audience: String!) {
googleVerifySSOToken(jwt: $jwt, audience: $audience) {
firstName
lastName
email
}
}
Variables
{
"jwt": "jwt",
"audience": "audience"
}
Response
{
"googleVerifySSOToken": {
"firstName": "example",
"lastName": "example",
"email": "email@example.com"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
jwt | String! | JSON Web Token from Google authentication. |
audience | String! | Expected audience for the JWT token, typically the Google client ID. |