Skip to main content

Error codes

import { googleSignInErrorCodes, type GoogleSignInErrorCode } from 'nitro-google-signin'

type GoogleSignInErrorCode = (typeof googleSignInErrorCodes)[number]

googleSignInErrorCodes is the readonly list of every code; GoogleSignInErrorCode is its union. Read a code from an error with getGoogleSignInErrorCode.

CodeMeaning
NOT_CONFIGUREDconfigure was not called, or a client ID is missing.
NO_PRESENTERNo foreground Activity or view controller can show sign-in or consent UI.
IN_PROGRESSAnother sign-in, requestScopes call, or Android ID token refresh is still running.
SIGN_IN_REQUIREDNo signed-in user.
SIGN_IN_CANCELLEDThe user declined a consent screen, or dismissed the account sheet of an Android ID token refresh.
SIGN_IN_FAILEDGoogle could not complete the request.
DEVELOPER_ERROROAuth misconfiguration: missing SHA-1, wrong client type, or missing iOS URL scheme.
PLAY_SERVICES_NOT_AVAILABLEAndroid: Play services missing or outdated.
SIGN_OUT_FAILEDAndroid: Credential Manager state could not be cleared.
REVOKE_ACCESS_FAILEDGoogle could not revoke the grant.

See Errors for handling patterns and troubleshooting.