I would like to know if it is possible to “force” a client reset error after changing server permissions values.
I have a use case where, at some point, an Atlas function is called and changes some values in user custom data. Those values are used by server read/write permissions. So, as it should be, after changing those user custom data values, any objects created on device will be rejected by the server due to changing the permissions.
I tried realmUser.refreshCustomData() but nothing changed.
My question: is there anything I can do to generate a client reset error (or other session update mechanism) where I can handle this permission change? I wouldn’t like to ask the user to restart the app to update the sync session.