@@ -452,7 +438,9 @@ export default function APIKeysPage() {
)}
{apiKey.last_used_at && (
-
Last Used
+
+ Last Used
+
{formatDate(apiKey.last_used_at)}
@@ -485,7 +473,7 @@ export default function APIKeysPage() {
onClick={() =>
revokeMutation.mutate(apiKey.key_id)
}
- className="bg-red-600 hover:bg-red-700"
+ className="bg-destructive hover:bg-destructive/90 text-white"
>
Revoke Key
@@ -519,7 +507,7 @@ export default function APIKeysPage() {
onClick={() =>
deleteMutation.mutate(apiKey.key_id)
}
- className="bg-red-600 hover:bg-red-700"
+ className="bg-destructive hover:bg-destructive/90 text-white"
>
Delete Key
@@ -543,55 +531,14 @@ export default function APIKeysPage() {
API Key Created
- Your API key has been created successfully. Copy it now as it
- won't be shown again.
+ Your API key has been created successfully
{createdApiKey && (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Important: Store both keys securely. For
- security reasons, we cannot show the secret key again.
-
-
-
-
-
- Usage: Use the full API key format{' '}
-
- pk_xxx:sk_xxx
-
{' '}
- in the{' '}
-
- X-API-Key
-
{' '}
- header for authentication.
+ Important: Store this API key securely.
+ For security reasons, we cannot show it again.
@@ -639,9 +572,7 @@ export default function APIKeysPage() {
)}
-
+