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.