Skip to content

Commit 7621bd1

Browse files
committed
Adds local storage to the option for use with React Native
1 parent cf0d86e commit 7621bd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SupabaseClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DEFAULT_OPTIONS = {
1010
autoRefreshToken: true,
1111
persistSession: true,
1212
detectSessionInUrl: true,
13-
localStorage: global.localStorage,
13+
localStorage: globalThis.localStorage,
1414
headers: DEFAULT_HEADERS,
1515
}
1616

src/lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export type SupabaseClientOptions = {
22
/**
3-
* The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase.
3+
* The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'.
44
*/
5-
schema: string
5+
schema?: string
66
/**
77
* Optional headers for initializing the client.
88
*/

0 commit comments

Comments
 (0)