summaryrefslogtreecommitdiff
path: root/apps/web/lib/api-key.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-07 05:03:35 -0800
committerFuwn <[email protected]>2026-02-07 05:03:35 -0800
commit17f0f1877764e9c1d79a2b86dac8ff2110aa6a34 (patch)
tree1cabf70d230dc614c3ee2408bdc0acaf13a502d8 /apps/web/lib/api-key.ts
parentfeat: dynamically compute sidebar max width from item text widths (diff)
downloadasa.news-17f0f1877764e9c1d79a2b86dac8ff2110aa6a34.tar.xz
asa.news-17f0f1877764e9c1d79a2b86dac8ff2110aa6a34.zip
fix: api key prefix rename, revoke fix, and webhook validation
Rename API key prefix from asn_ to asa_, fix key revoke by aligning response property names with frontend interface, and add server/client validation to prevent enabling webhooks without a URL.
Diffstat (limited to 'apps/web/lib/api-key.ts')
-rw-r--r--apps/web/lib/api-key.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/lib/api-key.ts b/apps/web/lib/api-key.ts
index ce59f89..f5beaac 100644
--- a/apps/web/lib/api-key.ts
+++ b/apps/web/lib/api-key.ts
@@ -1,6 +1,6 @@
import { randomBytes, createHash } from "crypto"
-const API_KEY_PREFIX = "asn_"
+const API_KEY_PREFIX = "asa_"
export function generateApiKey(): {
fullKey: string