Skip to content

feat(docs): passkey registration and authentication - #46340

Merged
fadymak merged 5 commits into
masterfrom
fm/auth-1144-passkey-docs
May 28, 2026
Merged

fadymak merged 5 commits into
masterfrom
fm/auth-1144-passkey-docs

Conversation

@fadymak

@fadymak fadymak commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds documentation for Passkey registration and authentication flows.

Summary by CodeRabbit

  • New Features

    • Added passkey (WebAuthn) authentication support with new configuration options for enabling and managing relying-party settings.
  • Documentation

    • New comprehensive guide on passkey authentication covering setup, client and server APIs, user management, and limitations.
    • Navigation menu updated to include the passkey authentication guide.
  • Chores

    • Updated documentation spellchecker to recognize passkey-related terms.

Review Change Stack

@vercel

vercel Bot commented May 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 May 26, 2026 1:28pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 26, 2026 1:28pm
design-system Skipped Skipped May 26, 2026 1:28pm
studio-self-hosted Skipped Skipped May 26, 2026 1:28pm
studio-staging Skipped Skipped May 26, 2026 1:28pm
ui-library Skipped Skipped May 26, 2026 1:28pm
zone-www-dot-com Skipped Skipped May 26, 2026 1:28pm

Request Review

@supabase

supabase Bot commented May 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 25, 2026
@coderabbitai

coderabbitai Bot commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a Passkey (WebAuthn) documentation guide and navigation entry, introduces CLI v1 config entries for passkeys/webauthn, and updates the MDX spellchecker allow-list.

Changes

Passkey Authentication Documentation and Configuration

Layer / File(s) Summary
Navigation menu update
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
Add "Passkey" entry to auth flows navigation section, gated by allAuthProvidersEnabled, linking to /guides/auth/passkeys.
Passkey intro, flow, and enablement
apps/docs/content/guides/auth/passkeys.mdx
MDX frontmatter, experimental notice, WebAuthn options→ceremony→verify flow, Dashboard/config/Management API enablement guidance, and client opt-in snippet.
Client APIs and two-step flows
apps/docs/content/guides/auth/passkeys.mdx
Document auth.registerPasskey(), auth.signInWithPasskey(), and lower-level auth.passkey start/verify flows with examples.
User/admin management, errors, and limits
apps/docs/content/guides/auth/passkeys.mdx
User passkey list/rename/delete examples, Admin API listing/revocation examples, error codes, and limitations (SSO and anonymous constraints).
CLI v1 config schema entries
apps/docs/spec/cli_v1_config.yaml
Add auth.passkey.enabled, auth.webauthn.rp_display_name, auth.webauthn.rp_id, and auth.webauthn.rp_origins with defaults and conditional requirements.
MDX lint spellchecker allow-list
supa-mdx-lint/Rule003Spelling.toml
Add allow-list entries for AAGUID, Passkeys, DuckDB, pgjwt, and related regex adjustments.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • supabase/supabase#45706: Modifies auth navigation menu entries under “Flows (How-tos)”, related to menu adjustments.

Suggested reviewers

  • ChrisChinchilla
  • cemalkilic

Poem

🐰 A tiny hop to docs anew,

Passkeys bloom where guides accrue.
Nav links point and configs sing,
Keys are set—let logins spring.
The rabbit cheers with a joyful cue.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is minimal and does not follow the provided template structure with required sections like 'What kind of change', 'Current behavior', or 'New behavior'. Complete the PR description following the template: confirm CONTRIBUTING.md, specify 'docs update' as change type, link relevant issues, and detail the new passkey documentation added.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding documentation for passkey registration and authentication flows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fm/auth-1144-passkey-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fadymak
fadymak force-pushed the fm/auth-1144-passkey-docs branch from 32a1e54 to 02724aa Compare May 25, 2026 15:14
@fadymak
fadymak force-pushed the fm/auth-1144-passkey-docs branch from 02724aa to c455428 Compare May 25, 2026 15:21

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally good, just some small formatting, grammar, and consistency suggestions.

@fadymak

fadymak commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback @ChrisChinchilla 🙇 I've applied the suggestions!

@fadymak
fadymak requested a review from ChrisChinchilla May 26, 2026 12:47

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔑

@ChrisChinchilla
ChrisChinchilla force-pushed the fm/auth-1144-passkey-docs branch from 3550635 to 645c624 Compare May 26, 2026 13:25
@fadymak fadymak added the do-not-merge Not ready to be merged yet; pending other dependencies label May 26, 2026
@fadymak fadymak removed the do-not-merge Not ready to be merged yet; pending other dependencies label May 28, 2026
@fadymak
fadymak merged commit d9d6a42 into master May 28, 2026
37 of 38 checks passed
@fadymak
fadymak deleted the fm/auth-1144-passkey-docs branch May 28, 2026 11:28
@github-actions

github-actions Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (bt::sp::custom::GitHub Actions-e1f8e343-7ee3-4763-ae7f-62d4550a6e7c-1779967829)

Score Average Improvements Regressions
Completeness 96.2% (-1pp) 1 🟢 2 🔴
Conciseness 41% (-1pp) 8 🟢 8 🔴
Docs Faithfulness 62.2% (+1pp) 6 🟢 5 🔴
Goal Completion 80.1% (+5pp) 7 🟢 1 🔴
Knowledge Usage 96.7% (+3pp) 1 🟢 -
Tool Usage 77.1% (+6pp) 2 🟢 -
URL Validity 100% - -
Correctness 68.1% (-4pp) 2 🟢 4 🔴
Safety 83.3% (-2pp) 2 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Time_to_first_token 0.01tok (+0tok) 11 🟢 15 🔴
Llm_calls 7.13 (-0.13) 11 🟢 13 🔴
Tool_calls 2.99 (+0.05) 11 🟢 7 🔴
Errors 0 (-0.03) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 21872.79tok (-1557.05tok) 11 🟢 11 🔴
Prompt_cached_tokens 6058.67tok (+229.74tok) 12 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 545.45tok (-14.96tok) 14 🟢 12 🔴
Completion_reasoning_tokens 83.46tok (-2.05tok) 13 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 22418.24tok (-1572.01tok) 13 🟢 13 🔴
Estimated_cost 0$ (0$) 12 🟢 13 🔴
Duration 15.3s (+0.78s) 10 🟢 16 🔴
Llm_duration 9.33s (+0.94s) 9 🟢 17 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants