email_otp_auth 0.0.1
email_otp_auth: ^0.0.1 copied to clipboard
Email Otp Auth is a Flutter package that provides email verification via OTP (One-Time Password)
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';
Usage #
sendOtp Method #
Use the sendOtp
method to send an OTP to an email address.
EmailOtpAuth.sendOTP(email: emailController.text);
verifyOtp Method #
Use the verifyOtp
method to verify the OTP sent to the email address.
EmailOtpAuth.verifyOtp(otp: otpController.text);
Features #
- Send OTP to any email address.
- Verify OTP sent to an email address.
Contributing #
Contributions are welcome! Please fork this repository and submit a pull request for any improvements or additions.
License #
This project is licensed under the MIT License - see the LICENSE file for details.