CompleteAccountSecurityFlow
Single-page “Account security” surface — drops change-password, 2FA management, session list, and logout-all into one organized view. Suitable for /settings/security.
The 2FA section auto-toggles based on the user’s current state (claims.two_factor_enabled isn’t on the token by design, so we approximate via the presence of a session_id claim — refine with a /whoami call if you need exact state).
Usage
import { CompleteAccountSecurityFlow } from '@rw3iss/auth-client/preact/flows';
<CompleteAccountSecurityFlow />Props
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
showImpersonationBanner | boolean | Render the impersonation banner if the caller is impersonating. |
className | string |