Components
<SessionsCard />
The <SessionsCard />
component provides users with an intuitive interface for viewing and managing their active authentication sessions. Users can easily revoke active sessions, enhancing security by maintaining control over their account access across multiple devices and browsers.

Usage
Include the <SessionsCard />
component within your account settings page or security settings page:
Reference
Below are the available props for customizing <SessionsCard />
:
Prop | Type | Default |
---|---|---|
className? | string | - |
classNames? | SettingsCardClassNames | - |
isPending? | boolean | - |
localization? | Partial<Partial<{ account: string; accounts: string; accountsDescription: string; accountsInstructions: string; addAccount: string; addPasskey: string; alreadyHaveAnAccount: string; avatar: string; ... 132 more ...; passwordTooShort: string; }>> | - |
sessions? | Session[] | null | - |
skipHook? | boolean | - |
refetch? | (() => Promise<void>) | - |
Styling
You can customize the appearance of <SessionsCard />
using Tailwind CSS classes provided via the classNames
prop:
Localization
The text within <SessionsCard />
can be customized through the localization
prop, allowing you to adapt it to different languages or contexts: