File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export default class SupabaseClient<
50
50
protected storageKey : string
51
51
protected fetch ?: Fetch
52
52
protected changedAccessToken : string | undefined
53
- protected shouldThrowOnError : boolean
54
53
55
54
protected headers : {
56
55
[ key : string ] : string
@@ -96,7 +95,6 @@ export default class SupabaseClient<
96
95
const settings = { ...DEFAULT_OPTIONS , ...options , storageKey : this . storageKey }
97
96
98
97
this . headers = { ...DEFAULT_HEADERS , ...options ?. headers }
99
- this . shouldThrowOnError = settings . shouldThrowOnError || false
100
98
101
99
this . auth = this . _initSupabaseAuthClient ( settings . auth || { } , this . headers , settings . fetch )
102
100
this . fetch = fetchWithAuth ( supabaseKey , this . _getAccessToken . bind ( this ) , settings . fetch )
@@ -106,7 +104,6 @@ export default class SupabaseClient<
106
104
headers : this . headers ,
107
105
schema : options ?. db ?. schema ,
108
106
fetch : this . fetch ,
109
- throwOnError : this . shouldThrowOnError ,
110
107
} )
111
108
112
109
this . _listenForAuthEvents ( )
Original file line number Diff line number Diff line change @@ -53,10 +53,6 @@ export type SupabaseClientOptions<SchemaName> = {
53
53
* Optional headers for initializing the client.
54
54
*/
55
55
headers ?: Record < string , string >
56
- /**
57
- * Throw errors, instead of returning them.
58
- */
59
- shouldThrowOnError ?: boolean
60
56
}
61
57
62
58
export type SupabaseRealtimePayload < T > = {
You can’t perform that action at this time.
0 commit comments