gildaswise / flutter_phone_auth Goto Github PK
View Code? Open in Web Editor NEWAdding sign in with Google and phone authentication to your Flutter app
License: MIT License
Adding sign in with Google and phone authentication to your Flutter app
License: MIT License
Hello,
i tried to run this project and was unable to because of this error:
The argument type '(Null) → Null' can't be assigned to the parameter type '(void) → dynamic'
at line:
Thanks
Error on both devices :
ios device seems : restricted_client
android seems :
ON Debug:
final onError = (exception, stacktrace) { //
exception has below response :
hashCode:1037681746
runtimeType:Type (PlatformException)
code:”sign_in_failed”
message:”com.google.android.gms.common.api.ApiException: 10: “
details:null
— — —
debugger line
final GoogleSignInAuthentication googleAuth = await user.authentication;
user.authentication has below response:
NoSuchMethodError (NoSuchMethodError: The getter ‘authentication’ was called on null. Receiver: null Tried calling: authentication)
— — -
show error snakbar :
Couldn’t log in with your Google account, please try again
i setup everything but login is not going to success :(
I don't want the user to enter email id every time they login
How to save session after logged in when apps start up?
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
Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The getter 'authentication' was called on null.
Receiver: null
Tried calling: authentication)
At first i was getting error 12500
if (user == null) {
user = await _googleSignIn.signIn().catchError(onError);
Logger.log(TAG, message: "Received $user");
final GoogleSignInAuthentication googleAuth = await user.authentication;
when i try to login again getting error
PlatformException (PlatformException(FirebaseException, User has already been linked to the given provider., null))
in _linkWithPhoneNumber function [linkWithCredential]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.