Compare commits

...

1 Commits
main ... debug

Author SHA1 Message Date
James Grugett
a5e37d3065 Add console.log 2022-08-25 17:17:16 -05:00

View File

@ -43,10 +43,12 @@ export function AuthProvider(props: {
const cachedUser = localStorage.getItem(CACHED_USER_KEY)
setAuthUser(cachedUser && JSON.parse(cachedUser))
}
console.log('local storage hook')
}, [setAuthUser, serverUser])
useEffect(() => {
return onIdTokenChanged(auth, async (fbUser) => {
console.log('onIdTokenChanged', fbUser)
if (fbUser) {
setTokenCookies({
id: await fbUser.getIdToken(),