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

Sending OTP

Use the sendOtp method to send an OTP to an email address.

EmailOtpAuth.sendOTP(email: emailController.text);

Verifying OTP

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.

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
Kamesh Singh

Copyright © 2024 Kamesh Singh Sisodiya. Licensed under the MIT LICENSE

Libraries

email_otp_auth