Reset a user's security keys (passkeys) by deleting all their webauthn credentials.

pangctl reset-user-security-keys --email user@example.com

This command will:
1. Find the user by email address
2. Check if they have any registered security keys
3. Delete all their security keys from the database
4. Provide feedback on the operation
This commit is contained in:
Adrian Astles
2025-08-03 20:47:27 +08:00
parent 84268e484d
commit bb84d01e14
2 changed files with 69 additions and 0 deletions

View File

@@ -3,9 +3,11 @@
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import { setAdminCredentials } from "@cli/commands/setAdminCredentials";
import { resetUserSecurityKeys } from "@cli/commands/resetUserSecurityKeys";
yargs(hideBin(process.argv))
.scriptName("pangctl")
.command(setAdminCredentials)
.command(resetUserSecurityKeys)
.demandCommand()
.help().argv;