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
-
Declaration
Swift
case invalidTokenResponse([String : Any]?)
-
Declaration
Swift
case invalidCallbackResponse(String)
-
Declaration
Swift
case unsupportedCallback(String)
-
Declaration
Swift
case invalidAuthServiceResponse(String)
-
Declaration
Swift
case invalidOAuth2Client
-
Declaration
Swift
case invalidGenericType
-
Declaration
Swift
case userAlreadyAuthenticated(Bool)
-
Declaration
Swift
case authenticationCancelled
-
Declaration
Swift
case invalidResumeURI(String)
-
Declaration
Swift
case userAuthenticationRequired
-
Unique error code for given error
Declaration
Swift
var code: Int { get }
-
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 }