Account Security & Preferences
Account settings components guard email changes, active user sessions, recovery contacts, and unsaved form modifications. They ensure deliberate changes and re-authentication gates for high-risk account operations.
Email changes, sessions, recovery contacts and edits that never saved.
Reads back everything an account deletion loses or keeps charging for, so users do not delete more than they expect or keep paying an app store.
Makes a pending recovery email or phone change visible during its hold, so the real owner can cancel a takeover attempt in time.
Keeps the current device safe while cleaning up sessions: it's pinned and marked, excluded from "sign out all others", and confirmed inline.
Replaces one-tap sign-in approval with typing the number shown on the sign-in screen, to make MFA-fatigue approvals harder.
Confirmation dialog that unlocks a destructive action only after the exact name is typed, flagging a typo as it happens.
Keeps destructive settings visible but locked until deliberately unlocked, so a stray click doesn't delete or transfer something.
Puts a lift-up cover over a critical switch like maintenance mode or a kill switch, so a stray click can't flip it.
Asks the user to re-confirm with a passkey, password or PIN before a sensitive action, so an unattended signed-in screen is harder to misuse.
Shows what removing a member, token or app will break: owned work left unowned, sessions ended and integrations that stop.
Reads back what an ownership transfer moves and keeps, warns about an outside email or a recipient whose plan can't own it, and waits for acceptance.
Reads back exactly when access ends, what is lost and what is refunded before someone cancels, and ends on a receipt with an undo.
Shows only the settings a reset would actually change, current → default, so a reset to defaults doesn't wipe customisations unseen.
Says exactly what a shorter data-retention period will delete and when, and suggests an export before it purges.
Makes lowering a seat count an explicit choice of who loses access, with the new bill and what happens to their work.
Reads an admin's password rules back against NIST SP 800-63B-4 and shows what they do to real passwords, so the rules don't make accounts weaker.
Catches typos in a new account email and keeps the old address active until the new one is verified, so nobody locks themselves out.
Spots the password inside a password hint or security answer, even reversed, spaced out or in leetspeak, without ever showing the password.
Reads back the exact handle that will be registered and blocks reserved words, case-only duplicates and lookalikes of existing names.
Checks a newly recorded keyboard shortcut against browser and OS reserved keys and the app's own bindings before it's saved.
Finds time zones by city, country or abbreviation and lists every meaning of ambiguous ones like IST or CST instead of guessing.
Reads back what an API key will be able to do in plain words, flags risky scopes and suggests trimming to what was actually used.
Reads a recurring price back in every billing period and catches a yearly price typed into the monthly field.
Catches a private SSH key pasted where a public key belongs, plus weak, truncated or malformed public keys, before they're saved.
Judges a webhook URL for the environment it's saved to and warns when an edit only changed www or a trailing slash, which senders treat as a failed redirect.
Splits a pasted list of emails or names, counts valid, duplicate and invalid items, and removes the bad ones before you import or invite.
Checks a webhook URL the way the sender will before it's saved: reachability, https, redirects, slow replies and login pages.
Prefills a distinct name right after a passkey is created, so the security page isn't a list of identical "Passkey" rows nobody can tell apart.
Marks fields that can't be changed back and, before save, lists only the permanent fields that actually changed, from → to.
Makes users save their recovery codes and type one back before continuing, so they aren't locked out later by codes they never kept.
Shows what would lock a user out if they lost their phone: stale recovery contacts, no backup method, or one phone holding both keys.
Names every unsaved field, warns before the tab closes, saves on Ctrl/⌘+S and asks twice before discarding.
Shows what changed in updated terms since the version a user accepted, and keeps Accept locked until each change has been on screen.
Checks a crop against faces, headlines and platform overlays, so a profile photo or Story doesn't cut off a face or hide text under the UI.
Highlights risky account changes from other devices and groups a takeover-shaped burst, with a "This wasn't me" path the user can review.
A sticky bar that says whose account you are acting as, and labels destructive buttons with the org they act on, so support staff don't edit the wrong data.
When the device's time zone differs from the account's, shows both clocks and asks once which to use, so times aren't misread while travelling.
Projects current usage to the reset date and warns when you'll run out first, so a usage limit isn't hit by surprise.
Removes marked emails, amounts and keys from the page while presenting, so they don't leak on a screen share.
Names which account an action runs as, and notices when another tab switched accounts, so nobody posts from the wrong one.
Explains why a permission is needed before the browser's one-shot prompt, and shows this browser's re-enable steps if it is blocked.
A badge that opens the concrete risks of a beta feature and a one-tap way back to the stable version, so people don't trust it blindly.
Shows what a chosen role can and can't do, the diff from the current role, and a smaller role when the pick adds risky permissions.
Makes widening who can see something an explicit step that shows who gains access; narrowing stays instant.
Reads every share-link setting back as one sentence and warns about public edit access, links that never expire and widening an already-copied link.
Before an upgrade or downgrade, reads back today's charge, credits, the next bill and any usage over the new plan's limits, so nobody is surprised by a charge or lost data.
Shows an API key masked but recognisable, re-hides it on a timer or when the tab is hidden, and copies the real value instead of dots.
Unsaved Changes Bar (`unsaved-changes-bar`) monitors dirty form state and shows a persistent warning bar before page unloads. Install with `npx shadcn@4.21.0 add @bollard/unsaved-changes-bar`. Limitation: browser tab crashes cannot be intercepted.
Reauth Guard (`reauth-guard`) prompts for current password or passkey verification before updating sensitive profile fields. Install with `npx shadcn@4.21.0 add @bollard/reauth-guard`. Limitation: session verification must be validated on the backend.
Session List (`session-list`) displays device type, IP, and location for active logins with instant revoke triggers. Install with `npx shadcn@4.21.0 add @bollard/session-list`. Limitation: session token revocation must be handled by your session store or Redis.
Timezone Select (`timezone-select`) detects the browser timezone and alerts if it differs from the saved account preference. Install with `npx shadcn@4.21.0 add @bollard/timezone-select`. Limitation: users traveling between regions must explicitly confirm changes.