MSALNativeAuthFlowError

@objcMembers
public class MSALNativeAuthFlowError : MSALNativeAuthError

Unified error type surfaced by the Native Auth V2 (server-driven) flows.

A single error type is used across all V2 flows so that an app’s MSALNativeAuthFlowDelegate has only one error shape to inspect, mirroring the unified delegate contract described in the V2 interface.

Warning

This API is experimental. It may be changed in the future without notice. Do not use in production applications.
  • Describes why an error occurred and provides more information about the error.

    Declaration

    Swift

    public override var errorDescription: String? { get }
  • Whether the delegate that produced this error is not implemented yet.

    Declaration

    Swift

    public var isNotImplemented: Bool { get }
  • Whether the username was not found in the directory.

    Declaration

    Swift

    public var isUserNotFound: Bool { get }
  • Whether the submitted one-time code was invalid.

    Declaration

    Swift

    public var isInvalidCode: Bool { get }
  • Whether the submitted password was rejected because it did not satisfy the server’s policy during sign up.

    Declaration

    Swift

    public var isInvalidPassword: Bool { get }
  • Whether the username and/or password supplied at sign in were not accepted by the server.

    Declaration

    Swift

    public var isInvalidCredentials: Bool { get }
  • Whether the username supplied to the SDK failed local validation.

    Declaration

    Swift

    public var isInvalidUsername: Bool { get }
  • Whether the account does not have a password associated with it.

    Declaration

    Swift

    public var isUserDoesNotHavePassword: Bool { get }
  • Whether an account already exists for the supplied username during sign up.

    Declaration

    Swift

    public var isUserAlreadyExists: Bool { get }
  • Whether the submitted authentication challenge was rejected by the server.

    Declaration

    Swift

    public var isInvalidChallenge: Bool { get }
  • Whether the server blocked the requested strong authentication method.

    Declaration

    Swift

    public var isAuthMethodBlocked: Bool { get }
  • Whether the server blocked the verification contact provided for strong authentication.

    Declaration

    Swift

    public var isVerificationContactBlocked: Bool { get }
  • Whether the input supplied for a strong authentication registration step was invalid.

    Declaration

    Swift

    public var isInvalidInput: Bool { get }