flutter_phone_auth
flutter_phone_auth copied to clipboard
[AUTH] Returning null from _verifyPhoneNumber
First of all, great package thanks!!
My issue is that I want a phone to authorize only, I'm getting the SMS but no sign in.
I've skipped the email login, and when I input my phone number I get this:
Iv tried to change this
final result = await _firebaseUser.linkWithCredential(credential).catchError((error) { print("Failed to verify SMS code: $error"); _showErrorSnackbar(errorMessage); }); _firebaseUser = result.user;
but cant figure what to change it to
Any help will be great
Hello! This is not really a package, but a companion repository to a tutorial I wrote a while ago. You can't really verify the phone number without a FirebaseUser
, which means you can't skip the email login which is why it's failing.
Refer to the full tutorial and make sure to follow everything: https://medium.com/flutter-community/flutter-adding-sign-in-with-google-and-phone-authentication-to-your-app-69f681518f9b