From a5e37d3065ac67b4878e8f7d6a593d1f92fca34d Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 25 Aug 2022 17:17:16 -0500 Subject: [PATCH] Add console.log --- web/components/auth-context.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/auth-context.tsx b/web/components/auth-context.tsx index f62c10a2..00a14d3f 100644 --- a/web/components/auth-context.tsx +++ b/web/components/auth-context.tsx @@ -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(),