Automatically Refresh Auth Tokens on User's Custom Data Change
Currently, getting updates to custom user data on the frontend requires periodically refreshing the token. A potential improvement would be for MongoDB Realm/SDKs to detect these changes automatically and streamline the token refresh so application code wasn't required to handle this case.
35
votes
![](https://secure.gravatar.com/avatar/3be28e2625a6a3961a018880f001bfb5?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Daniel Bernasconi commented
I agree this would be good. Note that there is a client function: app.currentUser.refreshCustomData();
-
Saurabh commented
It's very cool and necessary for Security!