| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This pull request adds an optional name property to the DecodedIdToken interface in both the API definition and the token verifier source code to represent the user's display name. I have no feedback to provide.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The DecodedIdToken returned from the verifySessionCookie or verifyIdToken methods is guaranteed to have an optional name field at runtime, but the field is not present in the type declaration.
Therefore, the name field is recognized as any, requiring unnecessary type guards or casting. This is a PR to resolve this issue.
firebase docs link
In this document, the token has an optional name field.
Changes