Skip to content
rw3iss Auth

LogoutAllButton

atom @rw3iss/auth-client/preact/atoms/LogoutAllButton framework-adapters/preact/components/atoms/LogoutAllButton.tsx ↗

Sign out of every session on every device for the current user. Calls /auth/logout/all which both revokes every refresh token in the DB AND bumps the per-user token-version (so outstanding access tokens fail validation cross-replica within ~one cache miss). Use after a credential compromise.

Usage

import { LogoutAllButton } from '@rw3iss/auth-client/preact/atoms';
<LogoutAllButton
onComplete={() => navigate("/login")}
/>

Props

NameTypeDescription
clientAuthClient
labelstring
onComplete() => void
classNamestring
variant'primary' | 'ghost' | 'danger'
confirmbooleanShow a confirmation prompt before firing. Default true.