chore: use hardcoded dummy API key
- Replace env-based API_KEY with sk-dummy-key hardcoded - All entry points use same key: Authorization: Bearer sk-dummy-key - Simplifies usage for library/client consumption Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
c0a02279bd
commit
47b85fb396
+1
-2
@@ -41,10 +41,9 @@ const RELAY_VERSION = "1.0.0";
|
||||
|
||||
// ─── API Key Authentication ─────────────────────────────────────────────────────
|
||||
|
||||
const API_KEY = process.env.API_KEY ?? "";
|
||||
const API_KEY = "sk-dummy-key";
|
||||
|
||||
function requireAuth(req: Request): Response | null {
|
||||
if (!API_KEY) return null;
|
||||
const header = req.headers.get("authorization") ?? req.headers.get("x-api-key") ?? "";
|
||||
const key = header.replace(/^Bearer\s+/i, "").trim();
|
||||
if (key === API_KEY) return null;
|
||||
|
||||
Reference in New Issue
Block a user