SignUpStartDelegate
@objc
public protocol SignUpStartDelegate
Protocol that defines the methods of a SignUpStart delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onSignUpStartError(error: SignUpStartError)Parameters
errorAn error object indicating why the operation failed.
-
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, thenonSignUpStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignUpCodeRequired(newState: SignUpCodeRequiredState, sentTo: String, channelTargetType: MSALNativeAuthChannelType, codeLength: Int)Parameters
newStateAn object representing the new state of the flow with follow on methods.
sentToThe email/phone number that the code was sent to.
channelTargetTypeThe channel (email/phone) the code was sent through.
codeLengthThe length of the code required.
-
Notifies the delegate that invalid attributes were sent.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignUpAttributesInvalid(attributeNames: [String])Parameters
attributeNamesList of attribute names that failed validation.
View on GitHub