BetterAuthEmailOtp class abstract

Annotations
  • @RestApi.new(callAdapter: BetterAuthCallAdapter)

Constructors

BetterAuthEmailOtp(Dio dio, {String? baseUrl, ParseErrorLogger? errorLogger})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changeEmail({required String newEmail, required String otp}) Future<Result<SuccessResponse>>
Completes an email change with the OTP sent to the new address.
checkVerificationOtp({required String email, required String type, required String otp}) Future<Result<SuccessResponse>>
Verifies an OTP without consuming it. type is one of email-verification, sign-in, forget-password, change-email.
forgotPassword({required String email}) Future<Result<SuccessResponse>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestEmailChange({required String newEmail}) Future<Result<SuccessResponse>>
Starts an email change: sends an OTP to newEmail.
requestPasswordReset({required String email}) Future<Result<SuccessResponse>>
Sends a password-reset OTP (no reset link involved).
resetPassword({required String email, required String otp, required String password}) Future<Result<SuccessResponse>>
sendVerification({required String email, required String type}) Future<Result<SuccessResponse>>
signIn({required String email, required String otp}) Future<Result<SignUpResponse>>
Signs in with an OTP. Same server-1.7 mailbox-truth rule as the magic-link flow: an unconfirmed account signing in here first loses its unproven password/linked accounts and sessions.
toString() String
A string representation of this object.
inherited
verifyEmail({required String email, required String otp}) Future<Result<SignUpResponse>>

Operators

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