Skip to content

Commit

Permalink
feat: add debug option for gotrue client
Browse files Browse the repository at this point in the history
  • Loading branch information
uhcrowdhouse committed Jul 8, 2023
1 parent 8f5ec5e commit d9b08e0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"@supabase/functions-js": "^2.1.0",
"@supabase/gotrue-js": "^2.31.0",
"@supabase/gotrue-js": "^2.39.0",
"@supabase/postgrest-js": "^1.7.0",
"@supabase/realtime-js": "^2.7.3",
"@supabase/storage-js": "^2.5.1",
Expand Down
2 changes: 2 additions & 0 deletions src/SupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export default class SupabaseClient<
storage,
storageKey,
flowType,
debug,
}: SupabaseAuthClientOptions,
headers?: Record<string, string>,
fetch?: Fetch
Expand All @@ -269,6 +270,7 @@ export default class SupabaseClient<
detectSessionInUrl,
storage,
flowType,
debug,
fetch,
})
}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export type SupabaseClientOptions<SchemaName> = {
* 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
Expand Down

0 comments on commit d9b08e0

Please sign in to comment.