fix: handle auth email callbacks explicitly

This commit is contained in:
2026-05-31 15:38:38 +08:00
parent 08aafeffcb
commit 0e2f24288f
3 changed files with 87 additions and 18 deletions
+6 -1
View File
@@ -7,4 +7,9 @@ if (!supabaseUrl || !supabaseKey) {
throw new Error('Missing Supabase environment variables')
}
export const supabase = createClient(supabaseUrl, supabaseKey)
export const supabase = createClient(supabaseUrl, supabaseKey, {
auth: {
// Email confirmation and password recovery are handled by route components.
detectSessionInUrl: false,
},
})