Constimport { passkey } from '@auth0/nextjs-auth0/client';
// One-call signup
await passkey.signup();
// One-call login
await passkey.login();
// Enroll a passkey for an authenticated user
const challenge = await passkey.enrollmentChallenge();
// ... run navigator.credentials.create() yourself ...
await passkey.enrollmentVerify({ authenticationMethodId: challenge.authenticationMethodId, authSession: challenge.authSession, authResponse: credential });
Client-side passkey (WebAuthn) singleton.