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.
| Code | Meaning |
|---|---|
NOT_CONFIGURED | configure was not called, or a client ID is missing. |
NO_PRESENTER | No foreground Activity or view controller can show sign-in or consent UI. |
IN_PROGRESS | Another sign-in, requestScopes call, or Android ID token refresh is still running. |
SIGN_IN_REQUIRED | No signed-in user. |
SIGN_IN_CANCELLED | The user declined a consent screen, or dismissed the account sheet of an Android ID token refresh. |
SIGN_IN_FAILED | Google could not complete the request. |
DEVELOPER_ERROR | OAuth misconfiguration: missing SHA-1, wrong client type, or missing iOS URL scheme. |
PLAY_SERVICES_NOT_AVAILABLE | Android: Play services missing or outdated. |
SIGN_OUT_FAILED | Android: Credential Manager state could not be cleared. |
REVOKE_ACCESS_FAILED | Google could not revoke the grant. |
See Errors for handling patterns and troubleshooting.