MODULES / CORE
Login As (Read Only)
Let authorized company administrators inspect the workspace as a member for up to 30 minutes. Impersonation is read-only and audited.
Overview
| Module id | ask_login_as |
|---|---|
| Version | 1.0.0 |
| Who uses it | Anyone who uses the screens listed below. |
| Installed | On demand, from Settings → Modules. Anything it needs is installed with it. |
How it links to other modules
- Needs: Core
- Works better with: no other module in particular
- Needed by: no other module
A module that is needed cannot be turned off while the module that needs it is on.
Details
Login As (Read Only)
Company members administrators can inspect a company as one of its members for up to 30 minutes. The active company is pinned for the duration, and a visible banner identifies the target and the administrator who started the session.
The real Better Auth session remains the administrator's. A random HttpOnly, SameSite=Strict cookie identifies a database row bound to that administrator session; only its SHA-256 hash is stored. Starting and ending sessions are recorded in the company's immutable audit log. Expired, revoked, removed-member, or disabled-module contexts stop resolving as the target.
Impersonation is read-only. Server actions and non-GET requests are denied, as are document exports that write audit events. Stop the session from the banner to return to the administrator identity. Signing out also ends it, and the sign-in and password reset screens stay open while its cookie is present, so a browser is never locked out (D151). No passwords or target credentials are created or exposed.