AuthenticationResult
public enum AuthenticationResult<ErrorType>
Used to represent whether a request was successful or encountered an error.
-
Authentication succeeded
Declaration
Swift
case success
-
Authentication failed with
ErrorTypeDeclaration
Swift
case failure(ErrorType)
-
Returns
trueif the result is a success,falseotherwise.Declaration
Swift
public var isSuccess: Bool -
Returns
trueif the result is a failure,falseotherwise.Declaration
Swift
public var isFailure: Bool -
Returns the associated value if the result is a failure,
nilotherwise.Declaration
Swift
public var error: ErrorType?
View on GitHub
AuthenticationResult Enum Reference