SignInStartDelegate
@objc
public protocol SignInStartDelegate
Protocol that defines the methods of a SignInStart delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onSignInStartError(error: SignInStartError)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, thenonSignInStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignInCodeRequired(newState: SignInCodeRequiredState, 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 a password is required from the user to continue.
Note
If a flow requires this optional method and it is not implemented, thenonSignInStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignInPasswordRequired(newState: SignInPasswordRequiredState)Parameters
newStateAn object representing the new state of the flow with follow on methods.
-
Notifies the delegate that a registration of a strong authentication method is required to continue.
Note
If a flow requires this optional method and it is not implemented, thenonSignInStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignInStrongAuthMethodRegistration(authMethods: [MSALAuthMethod], newState: RegisterStrongAuthState)Parameters
authMethodsThe list of available authentication methods for registration.
newStateAn object representing the new state of the flow with follow on methods.
-
Notifies the delegate that a multi factor authentication (MFA) is required from the user to continue.
Note
If a flow requires this optional method and it is not implemented, thenonSignInStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignInAwaitingMFA(authMethods: [MSALAuthMethod], newState: AwaitingMFAState)Parameters
authMethodsThe list of available authentication methods for MFA.
newStateAn object representing the new state of the flow with follow on methods.
-
Notifies the delegate that the sign in operation completed successfully.
Note
If a flow requires this optional method and it is not implemented, thenonSignInStartError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignInCompleted(result: MSALNativeAuthUserAccountResult)Parameters
resultAn object representing the signed in user account.
View on GitHub