File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ export default class SupabaseClient<
316
316
persistSession,
317
317
detectSessionInUrl,
318
318
storage,
319
+ userStorage,
319
320
storageKey,
320
321
flowType,
321
322
lock,
@@ -336,6 +337,7 @@ export default class SupabaseClient<
336
337
persistSession,
337
338
detectSessionInUrl,
338
339
storage,
340
+ userStorage,
339
341
flowType,
340
342
lock,
341
343
debug,
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ export type SupabaseClientOptions<SchemaName> = {
38
38
* A storage provider. Used to store the logged-in session.
39
39
*/
40
40
storage ?: SupabaseAuthClientOptions [ 'storage' ]
41
+ /**
42
+ * A storage provider to store the user profile separately from the session.
43
+ * Useful when you need to store the session information in cookies,
44
+ * without bloating the data with the redundant user object.
45
+ *
46
+ * @experimental
47
+ */
48
+ userStorage ?: SupabaseAuthClientOptions [ 'userStorage' ]
41
49
/**
42
50
* OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.
43
51
*/
You can’t perform that action at this time.
0 commit comments