Skip to content

parity(auth): resend() with PKCE flow should include code_challenge in request [from supabase-js] #257

@grdsdev

Description

@grdsdev

SDK Parity: C# implementation needed

Reference Implementation (supabase-js)

  • Commit: 658cc0d
  • PR: #2144
  • Module: auth
  • Type: bug-fix / enhancement

What Changed

When auth.Resend() is called to resend a confirmation email and the client uses PKCE flow, the request must include code_challenge and code_challenge_method in the body. Without this, the resent confirmation link cannot be completed in a PKCE flow.

Code Reference

if (this.flowType === 'pkce') {
  [codeChallenge, codeChallengeMethod] = await getCodeChallengeAndMethod(...)
}
// POST /resend body: { email, type, code_challenge, code_challenge_method }

Key Behaviors

  • PKCE flow: body must include code_challenge + code_challenge_method
  • Non-PKCE: no change

Acceptance Criteria

  • Resend() includes code_challenge when using PKCE flow
  • Non-PKCE unchanged

Context

  • supabase-js version: v2.108.0
  • Related Linear issues: SDK-1023 (dart), SDK-1025 (swift)

Generated with Claude Code /sync-sdk-parity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions