Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AUTH] Returning null from _verifyPhoneNumber #8

Open
omrid594 opened this issue Jul 29, 2020 · 1 comment
Open

[AUTH] Returning null from _verifyPhoneNumber #8

omrid594 opened this issue Jul 29, 2020 · 1 comment

Comments

@omrid594
Copy link

omrid594 commented Jul 29, 2020

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

@gildaswise
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants