diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index 0c64cc2bf..fbb3bb8ce 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -252,6 +252,7 @@ export default class SupabaseClient< storage, storageKey, flowType, + debug, }: SupabaseAuthClientOptions, headers?: Record, fetch?: Fetch @@ -269,6 +270,7 @@ export default class SupabaseClient< detectSessionInUrl, storage, flowType, + debug, fetch, }) } diff --git a/src/lib/types.ts b/src/lib/types.ts index 6787226c6..d6c4047f2 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -40,6 +40,10 @@ export type SupabaseClientOptions = { * OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications. */ flowType?: SupabaseAuthClientOptions['flowType'] + /** + * If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library. + */ + debug?: boolean } /** * Options passed to the realtime-js instance