feat: add created_at field to CreatedApiKeyResponse and update related handlers
Some checks failed
lint / lint (push) Successful in 16m47s
test / unit (push) Has been cancelled

This commit is contained in:
2026-07-04 15:04:16 +02:00
parent 8f69cfb011
commit c22bc68a8b
7 changed files with 35 additions and 11 deletions

View File

@@ -9,9 +9,7 @@ export default async function ApiKeysPage() {
redirect("/login");
}
const initialApiKeys = await getApiKeys(token).catch(() => ({
keys: [],
}));
const initialApiKeys = await getApiKeys(token).catch(() => []);
return (
<div className="space-y-6">
@@ -21,7 +19,7 @@ export default async function ApiKeysPage() {
Manage API keys for third-party applications.
</p>
</div>
<ApiKeyList initialApiKeys={initialApiKeys.keys} />
<ApiKeyList initialApiKeys={initialApiKeys} />
</div>
);
}