This commit is contained in:
Philipinho
2026-02-21 03:44:20 +00:00
parent 77ce9b5cd4
commit 0cf1247f36
8 changed files with 145 additions and 61 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export function extractBearerTokenFromHeader(
request: FastifyRequest,
): string | undefined {
const [type, token] = request.headers.authorization?.split(' ') ?? [];
return type === 'Bearer' ? token : undefined;
return type?.toLowerCase() === 'bearer' ? token : undefined;
}
export function hasLicenseOrEE(opts: {