AuthenticationResult

public enum AuthenticationResult<ErrorType>

Used to represent whether a request was successful or encountered an error.

  • Returns true if the result is a success, false otherwise.

    Declaration

    Swift

    public var isSuccess: Bool
  • Returns true if the result is a failure, false otherwise.

    Declaration

    Swift

    public var isFailure: Bool
  • Returns the associated value if the result is a failure, nil otherwise.

    Declaration

    Swift

    public var error: ErrorType?