Last updated:
0 purchases
email otp auth
Description #
Email Otp Auth is a Flutter package that provides email verification via OTP (One-Time Password). This package includes two primary methods: sendOtp and verifyOtp. The sendOtp method sends an OTP to the specified email address, while the verifyOtp method verifies the OTP by matching it with the one that was sent via the sendOtp method.
Installation #
To use this package in your Flutter project, add the following import statement:
import 'package:email_otp_auth/email_otp_auth.dart';
copied to clipboard
Usage #
Sending OTP #
Use the sendOtp method to send an OTP to an email address.
EmailOtpAuth.sendOTP(email: emailController.text);
copied to clipboard
Verifying OTP #
Use the verifyOtp method to verify the OTP sent to the email address.
EmailOtpAuth.verifyOtp(otp: otpController.text);
copied to clipboard
Features #
Send OTP to any email address.
Verify OTP sent to an email address.
Example #
👉 For a complete example, refer to the Email OTP Auth package.
Report bugs or issues #
You are welcome to open a ticket on github if any 🐞 problems arise. New ideas are always welcome.
Contributors #
Kamesh Singh
Copyright © 2024 Kamesh Singh Sisodiya. Licensed under the MIT LICENSE
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.