LogoutAllButton
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
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
label | string | |
onComplete | () => void | |
className | string | |
variant | 'primary' | 'ghost' | 'danger' | |
confirm | boolean | Show a confirmation prompt before firing. Default true. |