auth_handler 1.0.0 copy "auth_handler: ^1.0.0" to clipboard
auth_handler: ^1.0.0 copied to clipboard

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

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: "noreply@copyit.dev",
  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.

5
likes
130
pub points
67%
popularity

Publisher

verified publisherrahulchouhan.me

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

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on auth_handler