-
Notifications
You must be signed in to change notification settings - Fork 284
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
When you visit any page, onIdTokenChange function is called, so the token is changed.
I think this is redudant, we don't need to do update token on every page.
Versions
next-firebase-auth version: ^0.14.1-alpha.0,
Firebase JS SDK: 8.10.0
Next.js: 12.0.8
To Reproduce
Steps to reproduce the behavior:
- Go to any page which uses
withAuthUser - Then go to other page
- See in console - there is message
Completed auth API request via tokenChangedHandler.
Expected behavior
Should be called only when token expired or user auth state changed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
