You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login using app.$fire.auth.signInWithCustomToken().
Refresh the page. onIdTokenChanged is being called twice. The second time by asyncToGenerator.
Open a new tab with the same page. Both pages will get into endless loop of onIdTokenChanged calls.
What is Expected?
onIdTokenChanged happens only once when the page id is loaded, and onIdTokenChanged is not triggered when the page is opened in another tab.
What is actually happening?
onIdTokenChanged is getting refreshed a second time for no reason, and when the page is opened in two tabs it causes an endless loop of token refreshing.
The text was updated successfully, but these errors were encountered:
I'm fighting with this weird, hard-to-reproduce bug where firebase gets into endless loop of a token refresh.
Version
@nuxtjs/firebase: 8.2.2
firebase: 9.6.7
nuxt: 2.15.8
Steps to reproduce
It happened after:
app.$fire.auth.signInWithCustomToken()
.onIdTokenChanged
is being called twice. The second time byasyncToGenerator
.onIdTokenChanged
calls.What is Expected?
onIdTokenChanged
happens only once when the page id is loaded, andonIdTokenChanged
is not triggered when the page is opened in another tab.What is actually happening?
onIdTokenChanged
is getting refreshed a second time for no reason, and when the page is opened in two tabs it causes an endless loop of token refreshing.The text was updated successfully, but these errors were encountered: