Enable session persistence and auto token refresh for devconnect
cgen-26678e1921ee42ffafa86faa90edd9b3
This commit is contained in:
parent
73cf34daea
commit
7186eb5ca6
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ export const hasDevConnect = Boolean(devUrl && devAnon);
|
||||||
export const devconnect: SupabaseClient | null = hasDevConnect
|
export const devconnect: SupabaseClient | null = hasDevConnect
|
||||||
? createClient(devUrl!, devAnon!, {
|
? createClient(devUrl!, devAnon!, {
|
||||||
auth: {
|
auth: {
|
||||||
autoRefreshToken: false,
|
autoRefreshToken: true,
|
||||||
persistSession: false,
|
persistSession: true,
|
||||||
detectSessionInUrl: false,
|
detectSessionInUrl: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue