Skip to content

This package provides OTP-based authentication for Flutter. You can easily and quickly verify your email.

License

Notifications You must be signed in to change notification settings

chouhan-rahul/auth_handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-handler

chouhan-rahul buymeacoffee ko-fi paypal

Become a sponsor

sponsor

AuthHandler

The Flutter AuthHandler package is fast and simple to use. An OTP is sent to the recipient via email, which can be used to verify their account information.

AuthHandler Configuration

First, you need to create a AuthHandler instance. You need to follow the steps below

AuthHandler authHandler = AuthHandler();

If you want to use the default configuration, you can use this step.

authHandler.config();

If you want to use the custom configuration, you can use this step, You need to pass in the following parameters.

authHandler.config(
  senderEmail: "[email protected]",
  senderName: "Copyit",
  otpLength: 6,
);

To send an OTP to recipient's email address, follow this step

authHandler.sendOtp(emailController.text);

Here's how to verify the OTP

authHandler.verifyOtp(otpController.text);

Report bugs or issues

You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.

Copyright and License

Copyright © 2022 Rahul Chouhan. Licensed under the MIT LICENSE.

About

This package provides OTP-based authentication for Flutter. You can easily and quickly verify your email.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages