Hi guys,
I want to suggest an enhancement to the documentation.
It seems like the description
"Note: If a claim is added to a user who is already logged in those changes will not necessarily be propagated to the client. In order to assure the change is observed, use a refreshToken property in your userProfile collection and update it's value after the custom claim has been added. Because react-redux-firebase watches for profile changes, the custom claim will be fetched along with the refreshToken update."
from http://react-redux-firebase.com/docs/auth
Is quite confusing...
As it seems like no matter which value will be changed in the profile the token will be reloaded automatically...
for example you could create blablabla property in Firestore with timestamp now - the point something need to change and thats all...
And I thought from the documentation that this refreshToken suppose to be some special value and searched long time for its exact format - only reading the src/auth.js of react-redux-firestore made me figure it out :(
Hi guys, I want to suggest an enhancement to the documentation.
It seems like the description
"Note: If a claim is added to a user who is already logged in those changes will not necessarily be propagated to the client. In order to assure the change is observed, use a refreshToken property in your userProfile collection and update it's value after the custom claim has been added. Because react-redux-firebase watches for profile changes, the custom claim will be fetched along with the refreshToken update." from http://react-redux-firebase.com/docs/auth
Is quite confusing...
As it seems like no matter which value will be changed in the profile the token will be reloaded automatically... for example you could create blablabla property in Firestore with timestamp now - the point something need to change and thats all...
And I thought from the documentation that this refreshToken suppose to be some special value and searched long time for its exact format - only reading the src/auth.js of react-redux-firestore made me figure it out :(