Skip to content
rw3iss Auth

CompleteAccountSecurityFlow

flow @rw3iss/auth-client/preact/flows/CompleteAccountSecurityFlow framework-adapters/preact/components/flows/CompleteAccountSecurityFlow.tsx ↗

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

NameTypeDescription
clientAuthClient
showImpersonationBannerbooleanRender the impersonation banner if the caller is impersonating.
classNamestring