feat: polish release v2 experience (#6800)
This commit is contained in:
1 parent
925b0fb801
commit
a4a903d7c3
295 files changed
+10627
-7115
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user