GithubHelp home page GithubHelp logo

gildaswise / flutter_phone_auth Goto Github PK

View Code? Open in Web Editor NEW
88.0 88.0 38.0 133 KB

Adding sign in with Google and phone authentication to your Flutter app

License: MIT License

Java 0.90% Ruby 5.21% Objective-C 1.84% Dart 92.05%

flutter_phone_auth's People

Contributors

gildaswise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter_phone_auth's Issues

Login error

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

Logged in

How to save session after logged in when apps start up?

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

The getter 'authentication' was called on null.

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;

getting FirebaseException when login again

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.