GoogleSignIn Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

GIDSignInErrorCode

enum GIDSignInErrorCode : NSInteger {}

A list of potential error codes returned from the Google Sign-In SDK.

  • Indicates an unknown error has occurred.

    Declaration

    Swift

    case unknown = -1

    Objective-C

    kGIDSignInErrorCodeUnknown = -1
  • Indicates a problem reading or writing to the application keychain.

    Declaration

    Swift

    case keychain = -2

    Objective-C

    kGIDSignInErrorCodeKeychain = -2
  • 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.

    Declaration

    Swift

    case hasNoAuthInKeychain = -4

    Objective-C

    kGIDSignInErrorCodeHasNoAuthInKeychain = -4
  • Indicates the user canceled the sign in request.

    Declaration

    Swift

    case canceled = -5

    Objective-C

    kGIDSignInErrorCodeCanceled = -5
  • Indicates an Enterprise Mobility Management related error has occurred.

    Declaration

    Swift

    case EMM = -6

    Objective-C

    kGIDSignInErrorCodeEMM = -6
  • Indicates the requested scopes have already been granted to the currentUser.

    Declaration

    Swift

    case scopesAlreadyGranted = -8

    Objective-C

    kGIDSignInErrorCodeScopesAlreadyGranted = -8
  • Indicates there is an operation on a previous user.

    Declaration

    Swift

    case mismatchWithCurrentUser = -9

    Objective-C

    kGIDSignInErrorCodeMismatchWithCurrentUser = -9