Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/supabase.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
}
Loading