Repository navigation
Closed
Labels
Description
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 namespaceSupabase.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
- supabase-js version: 2.105.0
- Parity tracking: This issue was auto-generated by SDK parity analysis
- Related parity issues: SDK-893 (Dart), SDK-896 (Python), SDK-899 (Swift), [Feature request]: Add Passkey (WebAuthn) Support supabase-kt#1234 (Kotlin, existing)
Generated with Claude Code /sync-sdk-parity
Activity
Tr00d commentedon Nov 17, 2026
Addressed in #634, #637, #645, #646, #649 (client: list, delete, rename, sign in, register) and #651, #653 (admin: list, delete).