fix: Add active field to user object in daemon response

- Calculate `active` based on the absence of `revokedAt`.
This commit is contained in:
tcheeric 2025-11-26 21:24:31 +00:00
parent 666ab0d987
commit 85dfb739ad

View File

@ -94,6 +94,7 @@ function getKeyUsers(config: IConfig) {
createdAt: user.createdAt,
lastUsedAt: user.lastUsedAt || undefined,
revokedAt: user.revokedAt || undefined,
active: !user.revokedAt, // Active if not revoked
signingConditions: user.signingConditions, // Include signing conditions
};