feat: polish release v2 experience (#6800)

This commit is contained in:
Thomas authored and GitHub committed 2026-09-07 19:17:37 +02:00
1 parent 925b0fb801
commit a4a903d7c3
295 files changed
+10627 -7115

No files matched your search

+3 -2
View File
@@ -29,9 +29,10 @@ export const getSessionFromApiKeyAsync = async (
return null;
}
const [apiKeyId, apiKey] = apiKeyHeaderValue.split(".");
const apiKeyParts = apiKeyHeaderValue.split(".");
const [apiKeyId, apiKey] = apiKeyParts;
if (!apiKeyId || !apiKey) {
if (apiKeyParts.length !== 2 || !apiKeyId || !apiKey) {
logger.warn("Failed to authenticate with api-key", { ipAddress, userAgent, reason: "API_KEY_INVALID_FORMAT" });
return null;
}