prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

[Feature request]: Refresh accessToken automatically #985

Open Wgil opened 4 years ago

Wgil commented 4 years ago

Do you want to request a feature or report a bug?
Feature

What is the current behavior? stsTokenManager.accessToken is not refreshed.

What is the expected behavior? it would be nice to refresh it using firebase.auth().onIdTokenChanged as mentioned in https://github.com/prescottprue/react-redux-firebase/issues/562