authtempo sessions
For: an operator who must end sessions after a theft of a device or a breach.
What it does: this page lists the subcommands of authtempo sessions. Each subcommand has its own page.
Before you start
Section titled “Before you start”- The user tools on:
operator.users: true, and a named secret with thesessionsscope inoperator.secrets. Configuration lists the keys. - The operator secret in
AUTHTEMPO_OPERATOR_SECRET, or in a file. Secrets gives the rule.
The command
Section titled “The command”The @authtempo packages are on npm. Add the CLI to your app with pnpm add -D @authtempo/cli, and run each command as pnpm exec authtempo ….
authtempo sessions end https://api.example.com 01J8Z3Q4R5S6T7V8W9X0Y1Z2A3 --reason "stolen laptop" --yes| Subcommand | What it does | Page |
|---|---|---|
authtempo sessions end |
Ends every session of one user. | authtempo sessions end |
authtempo sessions end-all |
Ends the sessions of every user. | authtempo sessions end-all |
authtempo sessions with no subcommand is a usage error. With --json it prints { exit, stopped }.
| Flag | What it does |
|---|---|
--json |
Prints { exit, stopped } on a usage error. exit: the exit code of the run. stopped: the reason of a stop or a usage error, or null. |
-h, --help |
Prints the complete help. The command ignores every other argument. |
| Exit code | What it means |
|---|---|
| 0 | The command printed its help. |
| 2 | A usage error: the command needs a subcommand. |