Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created December 28, 2021 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/1c9ad05199d28e5eb5d6dd6286826dc7 to your computer and use it in GitHub Desktop.
Save vijayinyoutube/1c9ad05199d28e5eb5d6dd6286826dc7 to your computer and use it in GitHub Desktop.
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