diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-06 20:55:24 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-06 20:55:24 +0200 |
commit | 1812a91dacfcf37b454e05371efa556f3e85736e (patch) | |
tree | d7073509ce829cb539fe19c7455d0a50d5d53383 /src | |
parent | Misc: Add todo (diff) | |
download | fs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.tar.gz fs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.tar.bz2 fs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.zip |
Misc: Fix tsc errors
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/Login.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index a63f2e3..2f104d1 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -6,22 +6,21 @@ export default function Login(props: any) { const navigate = useNavigate(); useEffect(() => { - console.log("LOGIN PROPS", props) - window.HandleSignInWithGoogle = async (response: any) => { + (window as any).HandleSignInWithGoogle = async (response: any) => { await props.supabase.auth.signInWithIdToken({ provider: 'google', token: response.credential, }) } - props.supabase.auth.getSession().then(({ data: { session } }) => { + props.supabase.auth.getSession().then(({ data: { session } }: any) => { props.setSession(session) console.log("LOGIN SESSION", session) }) const { data: { subscription }, - } = props.supabase.auth.onAuthStateChange((_event, session) => { + } = props.supabase.auth.onAuthStateChange((_event: any, session: any) => { props.setSession(session) console.log("SESSION CHANGE", session) }) |