Skip to content

parity(auth): implement passkey (WebAuthn) support [from supabase-js] #251

Closed

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

Added full passkey (WebAuthn) support to the auth client, including:

  • Client-side: supabase.auth.passkey.register() — registers a new passkey via WebAuthn
  • Client-side: supabase.auth.passkey.authenticate() — signs in with a passkey
  • Client-side: supabase.auth.passkey.listEnrolledFactors() — lists passkeys enrolled for current user
  • Admin API: supabase.auth.admin.passkey.listFactors(userId) — lists passkeys for any user
  • Admin API: supabase.auth.admin.passkey.deleteFactor(userId, factorId) — removes a passkey

Passkeys require auth.experimental.passkeys: true in client options.

Code Reference

const supabase = createClient(url, key, {
  auth: { experimental: { passkeys: true } }
})

const { data, error } = await supabase.auth.passkey.register()
const { data, error } = await supabase.auth.passkey.authenticate()
const { data, error } = await supabase.auth.admin.passkey.listFactors({ userId })
const { data, error } = await supabase.auth.admin.passkey.deleteFactor({ userId, factorId })

Implementation Guidance

Expected API Surface

For C#, passkeys are relevant in:

  • Blazor WebAssembly: browser WebAuthn API via JS interop
  • MAUI: native credential APIs via platform-specific code
  • Admin API: fully applicable server-side
// Client passkey (Blazor/MAUI)
var response = await supabase.Auth.Passkey.Register();
var response = await supabase.Auth.Passkey.Authenticate();

// Admin passkey management
var response = await supabase.Auth.Admin.ListPasskeyFactors(userId: "user-uuid");
await supabase.Auth.Admin.DeletePasskeyFactor(userId: "user-uuid", factorId: "factor-uuid");

Key Behaviors to Match

  • Feature gated behind AuthOptions.Experimental.Passkeys = true
  • Admin methods fully applicable (server-side, no browser API needed)
  • Client-side uses WebAuthn/platform authenticator APIs
  • Proper error handling for unsupported platforms

Files Likely Affected

  • Supabase.Gotrue/Client.cs — add passkey namespace
  • Supabase.Gotrue/AdminClient.cs — add admin passkey methods
  • New: Supabase.Gotrue/Passkey/ — passkey types and client

Acceptance Criteria

  • Admin ListPasskeyFactors(userId) implemented
  • Admin DeletePasskeyFactor(userId, factorId) implemented
  • Client-side passkey methods implemented for applicable platforms
  • Feature gated behind experimental option
  • Response models defined
  • Tests cover happy path and error cases

Context


Generated with Claude Code /sync-sdk-parity

Activity

  1. self-assigned this
    on Jul 1, 2026
  2. Tr00d commented on Nov 17, 2026

    @Tr00d
    Contributor

    Addressed in #634, #637, #645, #646, #649 (client: list, delete, rename, sign in, register) and #651, #653 (admin: list, delete).

  3. reopened this on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions