From 1812a91dacfcf37b454e05371efa556f3e85736e Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 6 Jun 2024 20:55:24 +0200 Subject: Misc: Fix tsc errors --- src/pages/Login.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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) }) -- cgit 1.4.1