Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

passkeys

Skill by auth0

Adds passkey (WebAuthn) signup, sign-in and My Account enrollment to Next.js apps that use @auth0/nextjs-auth0 v4. It uses the server-side auth0.passkey methods inside route handlers or server actions. Built for developers who want to control each step of the passkey flow.

  • Score 81
  • 2.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install passkeys

Built from the published package, never by AI.

git clone --depth 1 https://github.com/auth0/nextjs-auth0 /tmp/nextjs-auth0 && mkdir -p ~/.claude/skills && cp -r /tmp/nextjs-auth0/skills/passkeys ~/.claude/skills/passkeys

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install passkeys in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers passkey (WebAuthn) flows for @auth0/nextjs-auth0 v4, with a minimum version of 4.22.0. It covers passkey signup, sign-in, and enrollment of a passkey for a signed-in user. The flows use the server-side auth0.passkey API, called from your own App Router route handlers or server actions.

Each flow follows the same pattern: the server creates a challenge, the browser runs navigator.credentials, the result is serialized with serializeCredential, and the server exchanges it for a session. The source also covers OTP identifier verification, which is in Early Access, and MFA fallback. It is aimed at developers who need to drive the ceremony step by step rather than use the one-call client wrappers.

Written from the project's SKILL.md and checked against it.

What it can do

  • auth0.passkey.registerStarts a passkey signup and returns a challenge for the browser.
  • auth0.passkey.challengeStarts a passkey sign-in and returns a challenge for the browser.
  • auth0.passkey.getTokenExchanges the browser credential for a session on the server.
  • auth0.passkey.enrollmentChallengeStarts adding a passkey to the current signed-in user's account.
  • auth0.passkey.enrollmentVerifyVerifies the new passkey and returns the registered auth method.
  • serializeCredentialConverts a WebAuthn credential into a JSON-safe, base64url-encoded object.

What you need

  • Next.js app using the App Router
  • @auth0/nextjs-auth0 version 4.22.0 or later
  • Auth0 tenant with a custom domain
  • Confidential Auth0 client with a client secret
  • Multi-Resource Refresh Token policy on the tenant for enrollment

Try asking

  • Add passkey signup and sign-in to my Next.js app using auth0.passkey
  • Build a passkey enrollment flow for signed-in users in my App Router app
  • Show me how to decode authnParamsPublicKey for navigator.credentials.get

Good to know

  • Passkeys do not work on the default *.auth0.com domain; a custom domain is required.
  • Plain localhost fails the WebAuthn ceremony; the app must be served from the custom domain or a subdomain of it.
  • Identifier verification on passkey signup is in Early Access and must be enabled by Auth0 Support.
  • Enrollment requires a Multi-Resource Refresh Token policy on the tenant.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/passkeys/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to passkeys

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

passkeys: common questions

Does this work with the default auth0.com domain?

No. The source says passkeys will not work on the default *.auth0.com domain, because the custom domain becomes the passkey rpId.

Should I use @simplewebauthn with this skill?

The source says not to. It states that @simplewebauthn double-encodes values and breaks the token exchange, so a small base64url helper is used instead.

Is there a simpler option than the server methods?

The SDK offers passkey.signup() and passkey.login() from @auth0/nextjs-auth0/client, which run the whole flow in one call but give no control over individual steps.

How do I install passkeys?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is passkeys free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is passkeys safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to passkeys?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

passkeys Install

Add to stack

Loading.