Skip to main content

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

NameTypeDescription
jwtString!JSON Web Token from Google authentication.
audienceString!Expected audience for the JWT token, typically the Google client ID.

Returns

googleVerifySSOResponse