BETTER-AUTH. UI
Components

<PasskeysCard />

Displays and manages user's passkeys/WebAuthn credentials

Import

import { PasskeysCard } from "@better-auth/ui-react/components";

Installation

pnpm dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/passkeys-card.json
npx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/passkeys-card.json
yarn dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/passkeys-card.json
bun x shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/passkeys-card.json

Usage

<PasskeysCard />

Props

NameTypeDefaultDescription
classNamestringundefinedAdditional CSS classes for styling
localizationAuthLocalizationundefinedLocalization object for translations

Example

import { PasskeysCard } from "@better-auth/ui-react/components";

export function SecuritySettings() {
  return (
    <div className="space-y-4">
      <PasskeysCard />
    </div>
  );
}

Features

  • View all registered passkeys
  • Add new passkeys
  • Delete existing passkeys
  • Shows passkey creation date and device info
  • Built-in loading states