Blocks / Settings

Security Settings

Change the password while signed in, and see and end the sessions an account is signed in from, backed by the framework's account security service.

$pnpm exec shadcn add @intelligo/security-settings

Run it inside an app made by intelligo create. Anywhere else, name the registry and install the base first.

Loading preview…
about this block

Change the password while signed in, and see and end the sessions an account is signed in from, backed by the framework's account security service.

yours to edit

No config seam of its own — it follows the app shell and the messages file.

messages/en/security-settings.json

Everything else is used verbatim; a deployment varies through these files and translations.How seams work →

requires
built from

button, card, input, label, skeleton, page-header

npm packages it adds

@intelligo-dev/auth · @intelligo-dev/core · @intelligo-dev/next · sonner · server-only · next-intl

what shadcn add writes · 11 files
Routes
  • app/[locale]/(app)/settings/security/page.tsx
  • app/[locale]/(app)/settings/security/loading.tsx
  • app/[locale]/(app)/settings/security/error.tsx
Components
  • components/security/change-password-form.tsx
  • components/security/session-list.tsx
  • components/security/two-factor-settings.tsx
Actions, config and messages
  • actions/security.ts
  • lib/account-security.ts
  • lib/user-agent.ts
  • messages/en/security-settings.json
  • messages/mn/security-settings.json

Ready to try it? Three commands and the app runs against a stub model.