Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Bug report
Describe the bug
Accessing the token this way:
next.js/examples/with-firebase-authentication/utils/auth/mapUserData.js
Line 6 in c28d39e
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?