From f19e6d28e9d5f2977991031bee4388c3a88fc01b Mon Sep 17 00:00:00 2001 From: otdoges Date: Sun, 20 Jul 2025 10:02:02 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 31: Disallow the `any` type Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/lib/supabase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts index 74f18082..f5de169e 100644 --- a/src/lib/supabase.ts +++ b/src/lib/supabase.ts @@ -1,4 +1,4 @@ -import { createClient } from '@supabase/supabase-js' +import { createClient, Session } from '@supabase/supabase-js' const supabaseUrl = import.meta.env.VITE_SUPABASE_URL const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY @@ -61,6 +61,6 @@ export const getCurrentUser = async () => { return user } -export const onAuthStateChange = (callback: (event: string, session: any) => void) => { +export const onAuthStateChange = (callback: (event: string, session: Session | null) => void) => { return supabase.auth.onAuthStateChange(callback) } \ No newline at end of file