Coder Social home page Coder Social logo

Comments (6)

yehyatt avatar yehyatt commented on May 31, 2024 6

You should refresh the user object after verification as follows :

usertask = mAuth.getCurrentUser().reload();
usertask.addOnSuccessListener(new OnSuccessListener() {
@OverRide
public void onSuccess(Void aVoid) {
user = mAuth.getCurrentUser();
boolean useremailveri = user.isEmailVerified();
String useremailuid = user.getUid();
}
});

from firebase-authentication-dotnet.

drptbl avatar drptbl commented on May 31, 2024 4

Workaround:

AuthSvc.Auth = await Task.Run(() => AuthSvc.AuthProvider.SignInWithEmailAndPasswordAsync(ConfigSvc.Username, ConfigSvc.Password).Result);
Console.Log(AuthSvc.Auth.User.IsEmailVerified); # returns False;
User user = await AuthSvc.AuthProvider.GetUserAsync(AuthSvc.Auth.FirebaseToken);
Console.Log(user.IsEmailVerified); # returns True;

Explanation:
You have to call .GetUserAsync after authenticating user in app with .SignInWithEmailAndPasswordAsync.

Cheers.

from firebase-authentication-dotnet.

hardcodet avatar hardcodet commented on May 31, 2024 3

Repro:

            var authLink = await authProvider.SignInWithEmailAndPasswordAsync(email, password);
            User user = await authProvider.GetUserAsync(authLink.FirebaseToken);

The IsEmailVerified flag in authLink.User is false. The flag in the user that I retrieve in the second call is true.

from firebase-authentication-dotnet.

itswisdomagain avatar itswisdomagain commented on May 31, 2024 1

Interesting. I'm gonna test it and see if I can figure out what's causing the issue.
Thanks for the catch!

from firebase-authentication-dotnet.

kashifiqbal112 avatar kashifiqbal112 commented on May 31, 2024

hi i have same issue can you resolve it ?

from firebase-authentication-dotnet.

 avatar commented on May 31, 2024

any one solve this problem

from firebase-authentication-dotnet.

Related Issues (20)

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.