Merge pull request #1052 from kubet/fix/refresh-token-timing

Fix/refresh token timing
This commit is contained in:
kubet 2025-07-23 23:25:19 +02:00 committed by GitHub
commit 6a201da1b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -14,5 +14,11 @@ export const createClient = () => {
// console.log('Supabase URL:', supabaseUrl);
// console.log('Supabase Anon Key:', supabaseAnonKey);
return createBrowserClient(supabaseUrl, supabaseAnonKey);
return createBrowserClient(supabaseUrl, supabaseAnonKey, {
auth: {
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: true
}
});
};