Skip to content
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

examples/with-firebase-authentication: accessing the token through Firebase 'private' variables is undocumented and buggy #18256

Open
SylvainGarrigues opened this issue Oct 26, 2020 · 0 comments

Comments

@SylvainGarrigues
Copy link

@SylvainGarrigues SylvainGarrigues commented Oct 26, 2020

Bug report

Describe the bug

Accessing the token this way:

is not documented anywhere, and it does not trigger token renewal, only firebase.auth().getIdToken() does - or access to other firebase services.

If you leave the browser window open for 1 hour with this example code, you will see an authentication error.

Expected behavior

use getIdToken instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.