24 lines
976 B
TypeScript
24 lines
976 B
TypeScript
/**
|
|
* Emergency break-glass: clear Super Admin TOTP + recovery codes after phone / authenticator loss.
|
|
*
|
|
* This is intentionally NOT an HTTP API. It requires:
|
|
* - SSH / Docker access to the VPS
|
|
* - BREAK_GLASS_TOKEN set in the environment (min 32 chars, distinct from JWT / setup tokens)
|
|
* - CLI --token matching that env value
|
|
* - Explicit --confirm=RESET_ADMIN_2FA
|
|
*
|
|
* VPS (from repo root, after image build):
|
|
* sudo docker compose run --rm --no-deps backend \
|
|
* node dist/scripts/breakGlassResetAdmin2fa.js \
|
|
* --email=admin@example.com \
|
|
* --confirm=RESET_ADMIN_2FA \
|
|
* --token="$BREAK_GLASS_TOKEN" \
|
|
* --operator=your-name
|
|
*
|
|
* Or: npm run phase-b:break-glass-reset-2fa -- --email=... --confirm=RESET_ADMIN_2FA --token=... --operator=...
|
|
*
|
|
* Local backend/:
|
|
* npm run break-glass-reset-2fa -- --email=... --confirm=RESET_ADMIN_2FA --token=...
|
|
*/
|
|
import './loadEnv';
|
|
//# sourceMappingURL=breakGlassResetAdmin2fa.d.ts.map
|