Skip to content

parity(auth): correct OAuth 2.1 authorization consent response types [from supabase-js] #234

Open

Description

@grdsdev

SDK Parity: C# implementation needed

A change was made in supabase-js that needs to be implemented in this repository for SDK parity.

Reference Implementation (supabase-js)

What Changed

The OAuth 2.1 authorization consent flow types were corrected. The response properly distinguishes between:

  1. Consent-needed: includes client details, user info, scopes, redirect_uri
  2. Already-consented: only includes redirect_url

Code Reference

type OAuthAuthorizationDetails = {
  client: OAuthAuthorizationClient
  scopes: OAuthScope[]
  user: User
  redirect_uri: string
}

type OAuthRedirect = {
  redirect_url: string
}

Implementation Guidance

Expected API Surface (C#)

public class OAuthAuthorizationDetails
{
    public OAuthAuthorizationClient Client { get; set; }
    public List<OAuthScope> Scopes { get; set; }
    public User User { get; set; }
    public string RedirectUri { get; set; }
}

public class OAuthRedirect
{
    public string RedirectUrl { get; set; }
}

Key Behaviors to Match

  • Distinguish between consent-needed and already-consented responses
  • PascalCase naming per C# conventions
  • Proper JSON deserialization for both variants

Acceptance Criteria

  • OAuth authorization response types correctly model both variants
  • Proper deserialization of both response types
  • Unit tests cover both flows
  • Documentation updated

Context

  • supabase-js version: v2.95.3
  • Parity tracking: This issue was auto-generated by SDK parity analysis
  • Related parity issues: SDK-695 (dart), SDK-696 (py), SDK-697 (swift)

Generated with Claude Code /sync-sdk-parity

Activity

  1. added
    feature
    on Feb 16, 2026
  2. self-assigned this
    on Jul 1, 2026
  3. self-assigned this
    on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

featureparity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions