Closed janiseliang closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ucbpfa-pantry-webapp | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 21, 2023 11:00pm |
the token was getting updated in the userContext, but wasn't getting refreshed in the react component because we were copying props.user
into this.state.user
when we should have just been using this.props.user
directly
should hoooopefully be fixed for good this time!
the token was getting updated in the userContext, but wasn't getting refreshed in the react component because we were copying
props.user
intothis.state.user
when we should have just been usingthis.props.user
directlyshould hoooopefully be fixed for good this time!
packingDetailed and bagPacking also use this.state.user sorry :( should i fix that?
the token was getting updated in the userContext, but wasn't getting refreshed in the react component because we were copying
props.user
intothis.state.user
when we should have just been usingthis.props.user
directlyshould hoooopefully be fixed for good this time!
packingDetailed and bagPacking also use this.state.user sorry :( should i fix that?
whoops i missed those, thanks! i can fix them and i'll also make sure none of the other pages use it
the token was getting updated in the userContext, but wasn't getting refreshed in the react component because we were copying
props.user
intothis.state.user
when we should have just been usingthis.props.user
directlyshould hoooopefully be fixed for good this time!
packingDetailed and bagPacking also use this.state.user sorry :( should i fix that?
whoops i missed those, thanks! i can fix them and i'll also make sure none of the other pages use it
yay thank you sm!!
Yay looks good! Also tried this out during open hours and it worked flawlessly :D
yay!! we finally did it :)
onAuthStateChanged
only listens for sign-in and sign-out. instead, we can useonIdTokenChanged
to listen for sign-in, sign-out, and token update after timeoutshttps://firebase.google.com/docs/reference/js/v8/firebase.auth.Auth#onidtokenchanged