BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/better-auth-ui/security-settings

Security Settings

better-auth-ui/security-settings
FreeComponent

A container component that displays security settings including password management, linked accounts, plugin-contributed security cards (e.g. passkeys), active sessions, and danger zone.

Live preview

live · rendered by the registry
Rendered by better-auth-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://better-auth-ui.com/r/security-settings.json

Source

src/components/auth/settings/security/security-settings.tsxbetter-auth-ui.com/r/security-settings.json
1"use client"
2
3import { useAuth } from "@better-auth-ui/react"
4import { cn } from "@/lib/utils"
5import { ActiveSessions } from "./active-sessions"
6import { ChangePassword } from "./change-password"
7import { LinkedAccounts } from "./linked-accounts"
8
9export type SecuritySettingsProps = {
10 className?: string
11}
12
13/**
14 * Renders the security settings layout including password management, linked accounts, and active sessions.
15 *
16 * ChangePassword is rendered when password authentication is enabled; LinkedAccounts is rendered when social providers are present.
17 * Each registered auth plugin may contribute `securityCards` (for example passkeys, delete-user).
18 *
19 * @param className - Optional additional CSS class names for the outer container.
20 * @returns The security settings container as a JSX element.
21 */
22export function SecuritySettings({ className }: SecuritySettingsProps) {
23 const { emailAndPassword, plugins, socialProviders } = useAuth()
24
25 return (
26 <div className={cn("flex w-full flex-col gap-4 md:gap-6", className)}>
27 {emailAndPassword?.enabled && <ChangePassword />}
28 {!!socialProviders?.length && <LinkedAccounts />}
29 <ActiveSessions />
30 {plugins.flatMap(
31 (plugin) =>
32 plugin.securityCards?.map((Card, index) => (
33 <Card key={`${plugin.id}-${index.toString()}`} />
34 )) ?? []
35 )}
36 </div>
37 )
38}

What it pulls in

npm packages

  • @better-auth-ui/react@latest
  • @better-auth-ui/core@latest

Other registry items

  • https://better-auth-ui.com/r/radix-nova/change-password.json
  • https://better-auth-ui.com/r/radix-nova/linked-accounts.json
  • https://better-auth-ui.com/r/radix-nova/active-sessions.json

Files it writes

  • src/components/auth/settings/security/security-settings.tsx

Facts

Registry
better-auth-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on better-auth-ui better-auth-ui.com better-auth-ui/better-auth-ui on GitHub Raw registry item This item as JSON

More from better-auth-ui

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Settingsaccount-settingsbetter-auth-uiComponentsFree2 deps
Active Sessionsactive-sessionsbetter-auth-uiComponentsFree5 deps · 2 files
Additional Fieldadditional-fieldbetter-auth-uiComponentsFree5 deps
Adminadminbetter-auth-uiComponentsFree4 deps · 3 files
Anonymousanonymousbetter-auth-uiComponentsFree4 deps · 3 files
API Keyapi-keybetter-auth-uiComponentsFree4 deps · 10 files
Authauthbetter-auth-uiComponentsFree2 deps
Auth Providerauth-providerbetter-auth-uiComponentsFree4 deps · 2 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex