Openstatus www.openstatus.dev

remove check (#1721)

authored by

Thibault Le Ouay and committed by
GitHub
f1ad8e8b a40cde27

+6 -6
+6 -6
apps/server/src/libs/middlewares/auth.ts
··· 91 91 */ 92 92 if (key.startsWith("os_")) { 93 93 // Validate token format before database query 94 - if (!/^os_[a-f0-9]{32}$/.test(key)) { 95 - return { 96 - result: { valid: false }, 97 - error: { message: "Invalid API Key format" }, 98 - }; 99 - } 94 + // if (!/^os_[a-f0-9]{32}$/.test(key)) { 95 + // return { 96 + // result: { valid: false }, 97 + // error: { message: "Invalid API Key format" }, 98 + // }; 99 + // } 100 100 101 101 // 1. Try custom DB first 102 102 const prefix = key.slice(0, 11); // "os_" (3 chars) + 8 hex chars = 11 total