Skip to content

Commit 84a729b

Browse files
fix(auth): narrow OAuth/CustomProvider types to fix downstream consumer typecheck (#2326)
Co-authored-by: Katerina Skroumpelou <mandarini@users.noreply.github.com>
1 parent db53b0f commit 84a729b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/auth-js/src/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,13 +2025,13 @@ export type OAuthClientResponseType = 'code'
20252025
* OAuth client type indicating whether the client can keep credentials confidential.
20262026
* Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
20272027
*/
2028-
export type OAuthClientType = 'public' | 'confidential' | (string & {})
2028+
export type OAuthClientType = 'public' | 'confidential'
20292029

20302030
/**
20312031
* OAuth client registration type.
20322032
* Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
20332033
*/
2034-
export type OAuthClientRegistrationType = 'dynamic' | 'manual' | (string & {})
2034+
export type OAuthClientRegistrationType = 'dynamic' | 'manual'
20352035

20362036
/**
20372037
* OAuth client token endpoint authentication method.
@@ -2213,7 +2213,7 @@ export interface GoTrueAdminOAuthApi {
22132213
/**
22142214
* Type of custom identity provider.
22152215
*/
2216-
export type CustomProviderType = 'oauth2' | 'oidc' | (string & {})
2216+
export type CustomProviderType = 'oauth2' | 'oidc'
22172217

22182218
/**
22192219
* OIDC discovery document fields.

0 commit comments

Comments
 (0)