Important: Starting May 1, 2024, Apple requires Privacy Manifests and signatures for iOS applications that use commonly-used SDKs, including GoogleSignIn-iOS. Upgrade to GoogleSignIn-iOS v7.1.0+ before May 1, 2024. Follow our upgrade guide.
Indicates there are no valid auth tokens in the keychain. This error code will be returned by
restorePreviousSignIn if the user has not signed in before or if they have since signed out.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["\u003cp\u003e\u003ccode\u003eGIDSignInErrorCode\u003c/code\u003e is a list of potential error codes returned from the Google Sign-In SDK.\u003c/p\u003e\n"],["\u003cp\u003eErrors can indicate issues such as unknown problems, keychain access failures, missing authentication tokens, user cancellations, and Enterprise Mobility Management problems.\u003c/p\u003e\n"],["\u003cp\u003eSome errors relate to the state of the user's sign-in, such as scopes already being granted or operations on a previous user account.\u003c/p\u003e\n"],["\u003cp\u003eEach error code has a corresponding integer value and is accessible in both Swift and Objective-C.\u003c/p\u003e\n"]]],[],null,["GIDSignInErrorCode \n\n enum GIDSignInErrorCode : NSInteger {}\n\nA list of potential error codes returned from the Google Sign-In SDK.\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeUnknown](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeUnknown)`\n ` \n Indicates an unknown error has occurred. \n\n Declaration \n Swift \n\n case unknown = -1\n\n Objective-C \n\n kGIDSignInErrorCodeUnknown = -1\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeKeychain](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeKeychain)`\n ` \n Indicates a problem reading or writing to the application keychain. \n\n Declaration \n Swift \n\n case keychain = -2\n\n Objective-C \n\n kGIDSignInErrorCodeKeychain = -2\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeHasNoAuthInKeychain](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeHasNoAuthInKeychain)`\n ` \n Indicates there are no valid auth tokens in the keychain. This error code will be returned by\n `restorePreviousSignIn` if the user has not signed in before or if they have since signed out. \n\n Declaration \n Swift \n\n case hasNoAuthInKeychain = -4\n\n Objective-C \n\n kGIDSignInErrorCodeHasNoAuthInKeychain = -4\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeCanceled](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeCanceled)`\n ` \n Indicates the user canceled the sign in request. \n\n Declaration \n Swift \n\n case canceled = -5\n\n Objective-C \n\n kGIDSignInErrorCodeCanceled = -5\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeEMM](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeEMM)`\n ` \n Indicates an Enterprise Mobility Management related error has occurred. \n\n Declaration \n Swift \n\n case EMM = -6\n\n Objective-C \n\n kGIDSignInErrorCodeEMM = -6\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeScopesAlreadyGranted](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeScopesAlreadyGranted)`\n ` \n Indicates the requested scopes have already been granted to the `currentUser`. \n\n Declaration \n Swift \n\n case scopesAlreadyGranted = -8\n\n Objective-C \n\n kGIDSignInErrorCodeScopesAlreadyGranted = -8\n\n- `\n ``\n ``\n `\n\n [kGIDSignInErrorCodeMismatchWithCurrentUser](#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeMismatchWithCurrentUser)`\n ` \n Indicates there is an operation on a previous user. \n\n Declaration \n Swift \n\n case mismatchWithCurrentUser = -9\n\n Objective-C \n\n kGIDSignInErrorCodeMismatchWithCurrentUser = -9"]]