AuthError

public enum AuthError : FRError
extension AuthError: CustomNSError

AuthError represents an error captured by FRAuth SDK during authentication

  • invalidTokenResponse: Invalid response from OAuth2 protocol for exchanging SSO Token with OAuth2 token set; token response must contain at least followings: access_token, scope, token_type, expires_in
  • invalidCallbackResponse: Invalid AuthService response for parsing Callback(s)
  • unsupportedCallback: Invalid AuthService response containing unsupported Callback type(s)
  • invalidAuthServiceResponse: Invalid AuthService response for missing/invalid authId
  • invalidOAuth2Client: Invalid AuthService or Node object without OAuth2Client while expecting to process OAuth2 protocol
  • invalidGenericType: Invalid generic type
  • userAlreadyAuthenticated: An error when there is already authenticated session (Session Token and/or OAuth2 token set)
  • authenticationCancelled: An error when the authentication process is cancelled

CustomNSError protocols

  • An error domain for AuthError

    Declaration

    Swift

    public static var errorDomain: String { get }
  • Error codes for each error enum

    Declaration

    Swift

    public var errorCode: Int { get }
  • Error UserInfo

    Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }