Shotstash
API referenceGraphQL referenceMutations

Google Auth

Public: signs in (or signs up) with a Google ID token.

Public: signs in (or signs up) with a Google ID token.

Arguments

idToken*String!

Google ID token.

Returns

AuthPayload!
  1. returns

Result of a sign-in or sign-up.

user?

The signed-in user, null on failure.

success*Boolean!

True when the call succeeded.

token?String

Bearer session token for /api/graphql and /api/v1, null on failure.

message?String

Human-readable message, null when none.

errorCode?String

Stable failure code, such as PASSWORD_TOO_SHORT; null on success.

mutation GoogleAuth($idToken: String!) {  googleAuth(idToken: $idToken) {    user {      id      name      email      role      active      accountStatus      requestedRole      onboardedAt      features {        signup        google        search        passwordResetEmail        discussion        demo      }    }    success    token    message    errorCode  }}