OtpModule class

Module managing one-time password (OTP) delivery and verification.

Constructors

OtpModule(SpJwtAuth auth)
Creates a new OtpModule.

Properties

auth → SpJwtAuth
The underlying authentication client.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendOtp({required String identifier, String? channel}) → Future<void>
Requests an OTP to be sent to the given identifier via optional channel.
toString() → String
A string representation of this object.
inherited
verifyOtp({required String identifier, required String code}) → Future<LoginResult>
Verifies an OTP code for identifier, storing the resulting session on success.

Operators

operator ==(Object other) → bool
The equality operator.
inherited