about summary refs log tree commit diff
path: root/src/pages
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-06 20:55:24 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-06 20:55:24 +0200
commit1812a91dacfcf37b454e05371efa556f3e85736e (patch)
treed7073509ce829cb539fe19c7455d0a50d5d53383 /src/pages
parentMisc: Add todo (diff)
downloadfs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.tar.gz
fs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.tar.bz2
fs-tracer-frontend-1812a91dacfcf37b454e05371efa556f3e85736e.zip
Misc: Fix tsc errors
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/Login.tsx7
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)
     })