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
For applications requiring the accessToken from a provider to make further API requests to said provider (for example, making requests to various Google APIs), they can fetch the initial access token via getRedirectResult() or signInWithPopup(), since these both pass firebase.auth.UserCredential.
However, when an access token is periodically refreshed, there's no means to get a corresponding firebase.auth.UserCredential.
It seems as though since onIdTokenChanged is triggered for token refreshes where as onAuthStateChanged is not, that onIdTokenChanged should pass a firebase.auth.UserCredential instead of firebase.User.
Is there any other means to listen for changes to the accessToken upon refresh?
yanivok, ausov, shawncao, NawarA, bhchiang and 1 moreRichardSilveira and Kimeiga