Comments (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.
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.
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.
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.
hi i have same issue can you resolve it ?
from firebase-authentication-dotnet.
any one solve this problem
from firebase-authentication-dotnet.
Related Issues (20)
- (Enchancement) Support Local Storage & Async for IUserRepository HOT 1
- Possibility to check user password HOT 1
- Question: do you not support sign in with custom token? HOT 1
- Email verification HOT 7
- Posibility to change the token expiration HOT 1
- Phone Authentication
- Exception occured during Firebase Http request. HOT 1
- Check if DisplayName already exists HOT 1
- Need Help with login with Google in .NET MAUI HOT 1
- Email Verification Implementation Help HOT 1
- [Endpoints Migration] : identitytoolkit v3 needs to be migrated to something else HOT 1
- Is there a way to get the last time user logged in?
- Create Email and Password issue in .Net MAUI
- [.NET MAUI] How implement "OpenBrowserAndWaitForRedirectToAuthDomain" HOT 2
- I can't get FetchSignInMethodsForEmailAsync to work HOT 2
- How to persist authentication across app restarts ? HOT 6
- Allow FirebaseAuthConfig.RedirectUri to be configurable
- Observed in version 3.7.2 : Parsing error when the password ends (or maybe contains also) a backslash \ HOT 2
- How do you set a photo Url in version 4.1.0?
- Refresh Token Implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-authentication-dotnet.