mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-08-01 07:21:42 +00:00
fix: Include revoked field in admin token response
- Add `revoked` field to indicate if a token is revoked based on `deletedAt`.
This commit is contained in:
parent
1cfa8f82d7
commit
666ab0d987
@ -238,6 +238,7 @@ class AdminInterface {
|
||||
redeemed_at: t.redeemedAt,
|
||||
redeemed_by: t.KeyUser?.description,
|
||||
time_until_expiration: t.expiresAt ? (t.expiresAt.getTime() - Date.now()) / 1000 : null,
|
||||
revoked: !!t.deletedAt, // Revoked if deletedAt is set
|
||||
};
|
||||
}));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user