Created
December 28, 2021 11:55
-
-
Save vijayinyoutube/1c9ad05199d28e5eb5d6dd6286826dc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sendOTP(String phoneNumber) async { | |
this.phoneNumber = phoneNumber; | |
FirebaseAuth auth = FirebaseAuth.instance; | |
ConfirmationResult confirmationResult = await auth.signInWithPhoneNumber( | |
'+91 $phoneNumber', | |
); | |
printMessage("OTP Sent to +91 $phoneNumber"); | |
return confirmationResult; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment