AuthEmailOtpClient class final
Typed client for the optional email OTP server plugin.
Constructors
- AuthEmailOtpClient({required AuthClientTransport transport})
-
Creates a typed client for email OTP operations.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport → AuthClientTransport
-
Transport used for OTP requests.
final
Methods
-
checkVerificationOtp(
{required String email, required AuthEmailOtpType type, required String otp}) → Future< void> - Checks a verification OTP without returning user data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendVerificationOtp(
{required String email, required AuthEmailOtpType type}) → Future< void> - Requests a verification OTP at the corresponding server endpoint.
-
signIn(
{required String email, required String otp, String? name, String? image}) → Future< AuthSession> -
Signs in with
otpand returns the issued session. -
toString(
) → String -
A string representation of this object.
inherited
-
verifyEmail(
{required String otp}) → Future< AuthUser> -
Verifies the authenticated user's email with
otp.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited