ResetPasswordResendCodeDelegate
@objc
public protocol ResetPasswordResendCodeDelegate
Protocol that defines the methods of a ResetPasswordResendCode delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onResetPasswordResendCodeError(error: ResendCodeError, newState: ResetPasswordCodeRequiredState?)
Parameters
error
An error object indicating why the operation failed.
newState
An object representing the new state of the flow with follow on methods.
-
Notifies the delegate that a verification code is required from the user to continue.
Note
If a flow requires this optional method and it is not implemented, thenonResetPasswordResendCodeError(error:newState:)
will be called.Declaration
Swift
@MainActor @objc optional func onResetPasswordResendCodeRequired( newState: ResetPasswordCodeRequiredState, sentTo: String, channelTargetType: MSALNativeAuthChannelType, codeLength: Int )
Parameters
newState
An object representing the new state of the flow with follow on methods.
sentTo
The email/phone number that the code was sent to.
channelTargetType
The channel (email/phone) the code was sent through.
codeLength
The length of the code required.