-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_auth] getIdTokenResult returns null values in IdTokenResult on Windows #11768
Comments
Thanks for the report @danielgorka |
I'm running on desktop. |
Thanks for the update. My colleague was able to replicate this on his Windows machine wherein it gave below results:
|
/cc @Lyokone |
Hi @danielgorka, this is a missing feature from the native C++ SDK. I'll report that to the internal team. |
Thank you for your quick attention to this. Looking forward to the update. |
+1 for this issue. |
Can't remember where i saw this but as a temporary fix until this is patched you can decode the token using https://pub.dev/packages/jwt_decoder and extract the claims claimsMap = JwtDecoder.decode(
(await getCurrentUser().getIdTokenResult()).toString()); |
|
Bug report
Describe the bug
When calling
User.getIdTokenResult
on Windows I've always got null values inIdTokenResult.authTime
,IdTokenResult.claims
.Steps to reproduce
Steps to reproduce the behavior:
signInWithEmailAndPassword
getIdTokenResult
IdTokenResult
has null values excepttoken
(claims
,authTime
etc.)Expected behavior
Non null values in
IdTokenResult
.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: