0 purchases
auth handler
Become a 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();
copied to clipboard
If you want to use the default configuration, you can use this step.
authHandler.config();
copied to clipboard
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,
);
copied to clipboard
To send an OTP to recipient's email address, follow this step #
authHandler.sendOtp(emailController.text);
copied to clipboard
Here's how to verify the OTP #
authHandler.verifyOtp(otpController.text);
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.