Skip to content

Commit d892c12

Browse files
chore: fix doc headers
1 parent 49cbb52 commit d892c12

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/SupabaseClient.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ export default class SupabaseClient<
6767
* Create a new client for use in the browser.
6868
* @param supabaseUrl The unique Supabase URL which is supplied when you create a new project in your project dashboard.
6969
* @param supabaseKey The unique Supabase Key which is supplied when you create a new project in your project dashboard.
70-
* @param options.schema You can switch in between schemas. The schema needs to be on the list of exposed schemas inside Supabase.
71-
* @param options.autoRefreshToken Set to "true" if you want to automatically refresh the token before expiring.
72-
* @param options.persistSession Set to "true" if you want to automatically save the user session into local storage.
73-
* @param options.detectSessionInUrl Set to "true" if you want to automatically detects OAuth grants in the URL and signs in the user.
74-
* @param options.headers Any additional headers to send with each network request.
70+
* @param options.db.schema You can switch in between schemas. The schema needs to be on the list of exposed schemas inside Supabase.
71+
* @param options.auth.autoRefreshToken Set to "true" if you want to automatically refresh the token before expiring.
72+
* @param options.auth.persistSession Set to "true" if you want to automatically save the user session into local storage.
73+
* @param options.auth.detectSessionInUrl Set to "true" if you want to automatically detects OAuth grants in the URL and signs in the user.
7574
* @param options.realtime Options passed along to realtime-js constructor.
76-
* @param options.fetch A custom fetch implementation.
75+
* @param options.global.fetch A custom fetch implementation.
76+
* @param options.global.headers Any additional headers to send with each network request.
7777
*/
7878
constructor(
7979
protected supabaseUrl: string,
@@ -105,13 +105,13 @@ export default class SupabaseClient<
105105
global: DEFAULT_GLOBAL_OPTIONS,
106106
}
107107

108-
const settings = applySettingDefaults(options || {}, DEFAULTS)
108+
const settings = applySettingDefaults(options ?? {}, DEFAULTS)
109109

110110
this.storageKey = settings.auth?.storageKey ?? ''
111111
this.headers = settings.global?.headers ?? {}
112112

113113
this.auth = this._initSupabaseAuthClient(
114-
settings?.auth || {},
114+
settings.auth ?? {},
115115
this.headers,
116116
settings.global?.fetch
117117
)

0 commit comments

Comments
 (0)