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
the role is set by a firestore function onUserCreate which is called as you would have guess at sign up.
The value of the custom claim role "read" by my useSelector is however not updated, it is still undefined no matter how long I wait, whereas it is correctly set on "server" (on firestore).
The app needs to be reloaded and then the role value is as expected. Here is my RRF config:
I am using RRF v3.11.0, to verify if a user is logged in I do the following:
the role is set by a firestore function
onUserCreate
which is called as you would have guess at sign up.The value of the custom claim role "read" by my
useSelector
is however not updated, it is still undefined no matter how long I wait, whereas it is correctly set on "server" (on firestore).The app needs to be reloaded and then the role value is as expected. Here is my RRF config:
If you wonder why I check this role before to grant the user access to my app, well, I have my reasons.
The text was updated successfully, but these errors were encountered: