@tstdl/base 0.82.64 → 0.82.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ function tryGetAuthorizationTokenStringFromRequest(request, cookieName = 'author
|
|
|
19
19
|
if ((0, type_guards_js_1.isDefined)(authorizationString)) {
|
|
20
20
|
const authorizationSchemeEnd = authorizationString.indexOf(' ');
|
|
21
21
|
const authorizationScheme = authorizationString.slice(0, authorizationSchemeEnd).trim().toLowerCase();
|
|
22
|
-
if (authorizationScheme
|
|
22
|
+
if (authorizationScheme != 'bearer') {
|
|
23
23
|
throw new bad_request_error_js_1.BadRequestError(`Unsupported authorization scheme "${authorizationScheme}".`);
|
|
24
24
|
}
|
|
25
25
|
const authorization = authorizationString.slice(authorizationSchemeEnd).trim();
|