Skip to content

fix(auth): narrow OAuth/CustomProvider types to fix downstream consumer typecheck - #2325

Merged
mandarini merged 1 commit into
developfrom
fix/auth-narrow
May 4, 2026
Merged

mandarini merged 1 commit into
developfrom
fix/auth-narrow

Conversation

@mandarini

@mandarini mandarini commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Partially reverts the (string & {}) widening from #2300 for three OAuth/CustomProvider types: OAuthClientType, OAuthClientRegistrationType, and CustomProviderType. These are externally closed enums tied to the OAuth 2.1 server, and the widening leaked through consumer form schemas (e.g. Studio) into strict mutation contracts, breaking typecheck on assignments like 'public' | 'confidential' | (string & {}) to 'public' | 'confidential'. The genuinely server-extensible types from that PR (EmailOtpType, MobileOtpType, AuthFlowType) remain widened.

@mandarini
mandarini requested review from a team as code owners May 4, 2026 15:09
@github-actions github-actions Bot added the auth-js Related to the auth-js library. label May 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented May 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2325

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2325

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2325

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2325

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2325

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2325

commit: c68d645

@mandarini
mandarini merged commit ff97043 into develop May 4, 2026
25 checks passed
@mandarini
mandarini deleted the fix/auth-narrow branch May 4, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth-js Related to the auth-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants