We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721c46e commit cad0bccCopy full SHA for cad0bcc
1 file changed
apps/workers/v0/src/middlewares/api-key-auth.hono.ts
@@ -21,10 +21,13 @@ export const apiKeyAuthMiddleware = createMiddleware<AppBindings>(
21
22
if (!apiKey) {
23
logDebug(c.env, '🔑 No API key provided, skipping to next auth method');
24
- return c.json(
25
- { success: false, error: 'Unauthorized: No API key provided' },
26
- 401,
27
- );
+ // return c.json(
+ // { success: false, error: 'Unauthorized: No API key provided' },
+ // 401,
+ // );
28
+
29
+ // skip to next auth method
30
+ return next();
31
}
32
33
try {
0 commit comments