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<
316316 persistSession,
317317 detectSessionInUrl,
318318 storage,
319+ userStorage,
319320 storageKey,
320321 flowType,
321322 lock,
@@ -336,6 +337,7 @@ export default class SupabaseClient<
336337 persistSession,
337338 detectSessionInUrl,
338339 storage,
340+ userStorage,
339341 flowType,
340342 lock,
341343 debug,
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ export type SupabaseClientOptions<SchemaName> = {
3838 * A storage provider. Used to store the logged-in session.
3939 */
4040 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' ]
4149 /**
4250 * OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.
4351 */
You can’t perform that action at this time.
0 commit comments