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.
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,
);
authHandler.sendOtp(emailController.text);
authHandler.verifyOtp(otpController.text);
You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.
Copyright © 2022 Rahul Chouhan. Licensed under the MIT LICENSE.