When it fires
Two paths:
- Dashboard revoke via
RevokeCliTokenAction: an admin or owner explicitly revokes the token envless logout: the CLI revokes its own token; payload includesreason: 'logout'
Payload
ts
{
type: 'cli_token.revoked',
data: {
cliToken: {
id: string
}
reason?: 'logout' // present only on self-revoke from CLI logout
}
}Example: dashboard revoke
json
{
"type": "cli_token.revoked",
"data": {
"cliToken": {
"id": "0192a1b2-c3d4-7000-8000-0000000000a0"
}
}
}Example: CLI logout
json
{
"type": "cli_token.revoked",
"data": {
"cliToken": {
"id": "0192a1b2-c3d4-7000-8000-0000000000a0"
},
"reason": "logout"
}
}