flutter_phone_auth icon indicating copy to clipboard operation
flutter_phone_auth copied to clipboard

[AUTH] Returning null from _verifyPhoneNumber

Open omrid594 opened this issue 4 years ago • 1 comments

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: image

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

omrid594 avatar Jul 29 '20 20:07 omrid594

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

gildaswise avatar Jul 30 '20 16:07 gildaswise