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
Btw for this one, probably shouldn't set config token in setClaims() and only set token in onAuthStateChanged(). onAuthStateChanged() runs first, so if userToken state is not set before the set config token call in setClaims(), then userToken is null, meaning the set config token call in setClaims() will set token to empty string, which stops users from signing in when they click on the sign in button for the first time. After that, they sign in normally.
This is just what I encountered doing some testing with querying for roles using backend api : )
Config token needs to be set on auth changed (in auth listener) otherwise when we refresh the page we won't have the token.
https://github.com/HKN-UCSD/hkn-member-portal/blob/5a21c9c33dd1da7c9d1069b5ba61d17c1f9c71c3/src/pages/App/index.js#L46
The text was updated successfully, but these errors were encountered: