MSALNativeAuthCodeRequiredDelegate
@objc
public protocol MSALNativeAuthCodeRequiredDelegate : MSALNativeAuthFlowDelegate
Per-state delegate for the MSALNativeAuthCodeRequiredState 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 verify a one-time code. Continue with
submitCode(_:delegate:)(or request a new code withresendCode(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 onCodeRequired(state: MSALNativeAuthCodeRequiredState, scenario: MSALNativeAuthFlowScenario)Parameters
stateThe code-required state (destination, channel, expected length) that also exposes the continuation methods.
scenarioThe flow that produced this callback.
View on GitHub