# GoogleSignIn Framework Reference

# GIDSignInErrorCode

    enum GIDSignInErrorCode : NSInteger {}

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


  ### [kGIDSignInErrorCodeUnknown](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeUnknown)


  ` Indicates an unknown error has occurred.

  #### Declaration

  Swift

      case unknown = -1

  Objective-C

      kGIDSignInErrorCodeUnknown = -1

- `


  ### [kGIDSignInErrorCodeKeychain](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeKeychain)


  ` Indicates a problem reading or writing to the application keychain.

  #### Declaration

  Swift

      case keychain = -2

  Objective-C

      kGIDSignInErrorCodeKeychain = -2

- `


  ### [kGIDSignInErrorCodeHasNoAuthInKeychain](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeHasNoAuthInKeychain)


  ` 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

- `


  ### [kGIDSignInErrorCodeCanceled](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeCanceled)


  ` Indicates the user canceled the sign in request.

  #### Declaration

  Swift

      case canceled = -5

  Objective-C

      kGIDSignInErrorCodeCanceled = -5

- `


  ### [kGIDSignInErrorCodeEMM](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeEMM)


  ` Indicates an Enterprise Mobility Management related error has occurred.

  #### Declaration

  Swift

      case EMM = -6

  Objective-C

      kGIDSignInErrorCodeEMM = -6

- `


  ### [kGIDSignInErrorCodeScopesAlreadyGranted](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeScopesAlreadyGranted)


  ` Indicates the requested scopes have already been granted to the `currentUser`.

  #### Declaration

  Swift

      case scopesAlreadyGranted = -8

  Objective-C

      kGIDSignInErrorCodeScopesAlreadyGranted = -8

- `


  ### [kGIDSignInErrorCodeMismatchWithCurrentUser](https://developers.google.com/identity/sign-in/ios/reference/Enums/GIDSignInErrorCode#/c:@E@GIDSignInErrorCode@kGIDSignInErrorCodeMismatchWithCurrentUser)


  ` Indicates there is an operation on a previous user.

  #### Declaration

  Swift

      case mismatchWithCurrentUser = -9

  Objective-C

      kGIDSignInErrorCodeMismatchWithCurrentUser = -9