We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug verifyIdToken throw an error if the token's sign_in_provider is null.
verifyIdToken
Null check operator used on a null value #0 new DecodedIdToken.fromMap (package:dart_firebase_admin/src/auth/token_verifier.dart:318:48)
This is the culprit.
Line 318: signInProvider: map['sign_in_provider']! as String,
sign_in_provider can be null and is null when returned by the client's FirebaseAuth.instance.currentUser.getIdToken().
sign_in_provider
FirebaseAuth.instance.currentUser.getIdToken()
To Reproduce
Expected behavior verifyIdToken should decode successfully.
The text was updated successfully, but these errors were encountered:
rrousselGit
No branches or pull requests
Describe the bug
verifyIdToken
throw an error if the token's sign_in_provider is null.This is the culprit.
sign_in_provider
can be null and is null when returned by the client'sFirebaseAuth.instance.currentUser.getIdToken()
.To Reproduce
FirebaseAuth.instance.currentUser.getIdToken()
.Expected behavior
verifyIdToken should decode successfully.
The text was updated successfully, but these errors were encountered: