Skip to content

Commit 27db298

Browse files
astoiccoderUlrich Herzkamp
andauthored
feat: add debug option for gotrue client (#804)
Co-authored-by: Ulrich Herzkamp <[email protected]>
1 parent f450b33 commit 27db298

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/SupabaseClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export default class SupabaseClient<
252252
storage,
253253
storageKey,
254254
flowType,
255+
debug,
255256
}: SupabaseAuthClientOptions,
256257
headers?: Record<string, string>,
257258
fetch?: Fetch
@@ -269,6 +270,7 @@ export default class SupabaseClient<
269270
detectSessionInUrl,
270271
storage,
271272
flowType,
273+
debug,
272274
fetch,
273275
})
274276
}

src/lib/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export type SupabaseClientOptions<SchemaName> = {
4040
* OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.
4141
*/
4242
flowType?: SupabaseAuthClientOptions['flowType']
43+
/**
44+
* If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library.
45+
*/
46+
debug?: boolean
4347
}
4448
/**
4549
* Options passed to the realtime-js instance

0 commit comments

Comments
 (0)