feat: api keys

This commit is contained in:
Ahmed Bouhuolia
2025-07-01 23:45:38 +02:00
parent 84cb7693c8
commit 9457b3cda1
7 changed files with 87 additions and 20 deletions

View File

@@ -1,16 +1,7 @@
import { Transformer } from '@/modules/Transformer/Transformer';
export class GetApiKeysTransformer extends Transformer {
public includeAttributes = (): string[] => {
return [
'id',
'key',
'name',
'createdAt',
'expiresAt',
'revoked',
'userId',
'tenantId',
];
public excludeAttributes = (): string[] => {
return ['tenantId'];
};
}