feat: api keys ui (#839)

* feat: api keys ui
This commit is contained in:
Ahmed Bouhuolia
2025-11-02 12:41:16 +02:00
committed by GitHub
parent 41143d8bbd
commit a76445a6eb
23 changed files with 723 additions and 11 deletions

View File

@@ -1,7 +1,16 @@
import { Transformer } from '@/modules/Transformer/Transformer';
export class GetApiKeysTransformer extends Transformer {
public includeAttributes = (): string[] => {
return ['token'];
};
public excludeAttributes = (): string[] => {
return ['tenantId'];
};
public token(apiKey) {
return apiKey.key ? `${apiKey.key.substring(0, 8)}...` : '';
}
}