TokenError

public enum TokenError : FRError
extension TokenError: CustomNSError

ConfigError represents an error captured by FRAuth SDK for invalid operation related to Token with given state

  • failToParseToken: Failed to parse token from secure storage
  • nullRefreshToken: Missing refresh_token while it’s required
  • nullToken: Missing token value while it’s required
  • Declaration

    Swift

    case failToParseToken(String)
  • Declaration

    Swift

    case nullRefreshToken
  • Declaration

    Swift

    case nullToken
  • Unique error code for given error

    Declaration

    Swift

    var code: Int { get }
  • Parses TokenError value into integer error code

    Declaration

    Swift

    func parseErrorCode() -> Int

    Return Value

    Int value of unique error code

CustomNSError protocols

  • An error domain for TokenError

    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 }