MSALNativeAuthNewPasswordRequiredDelegate
@objc
public protocol MSALNativeAuthNewPasswordRequiredDelegate : MSALNativeAuthFlowDelegate
Per-state delegate for the MSALNativeAuthNewPasswordRequiredState step of a Native Auth V2 flow.
Conform to this protocol (in addition to the terminal callbacks inherited from
MSALNativeAuthFlowDelegate) to handle this state. Conforming is opt-in per state, but the
callback is required once you conform.
Warning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.-
The server requires the user to enter a new password (self-service password reset). Continue with
submitNewPassword(_:delegate:).Note
If the app’s delegate does not conform to this protocol, thenonFlowError(error:scenario:)is called with error typenotImplemented.Declaration
Swift
@MainActor func onNewPasswordRequired(state: MSALNativeAuthNewPasswordRequiredState, scenario: MSALNativeAuthFlowScenario)Parameters
stateThe new-password-required state.
scenarioThe flow that produced this callback.
View on GitHub