mirror of
https://github.com/docmost/docmost.git
synced 2026-07-14 21:56:52 +10:00
fixes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user