SignUpVerifyCodeDelegate
@objc
public protocol SignUpVerifyCodeDelegate
Protocol that defines the methods of a SignUpVerifyCode delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onSignUpVerifyCodeError(error: VerifyCodeError, newState: SignUpCodeRequiredState?)
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 attributes are required from the user to continue.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpVerifyCodeError(error:newState:)
will be called.Declaration
Swift
@MainActor @objc optional func onSignUpAttributesRequired(attributes: [MSALNativeAuthRequiredAttribute], newState: SignUpAttributesRequiredState)
Parameters
attributes
List of required attributes.
newState
An object representing the new state of the flow with follow on methods.
-
Notifies the delegate that a password is required from the user to continue.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpVerifyCodeError(error:newState:)
will be called.Declaration
Swift
@MainActor @objc optional func onSignUpPasswordRequired(newState: SignUpPasswordRequiredState)
Parameters
newState
An object representing the new state of the flow with follow on methods.
-
Notifies the delegate that the sign up operation completed successfully.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpVerifyCodeError(error:newState:)
will be called.Declaration
Swift
@MainActor @objc optional func onSignUpCompleted(newState: SignInAfterSignUpState)
Parameters
newState
An object representing the new state of the flow with follow on methods.