@forklaunch/core 0.15.0 → 0.15.1-debug-hmac
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.
- package/lib/http/index.js +7 -0
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +7 -0
- package/lib/http/index.mjs.map +1 -1
- package/package.json +4 -4
package/lib/http/index.js
CHANGED
@@ -399,6 +399,13 @@ async function checkAuthorizationToken(req, authorizationMethod, authorizationTo
|
|
399
399
|
const parsedTimestamp = parseHmacTokenPart(timestamp, "ts");
|
400
400
|
const parsedNonce = parseHmacTokenPart(nonce, "nonce");
|
401
401
|
const parsedSignature = parseHmacTokenPart(signature, "signature");
|
402
|
+
console.log(
|
403
|
+
"parseditems",
|
404
|
+
parsedKeyId,
|
405
|
+
parsedTimestamp,
|
406
|
+
parsedNonce,
|
407
|
+
parsedSignature
|
408
|
+
);
|
402
409
|
if (!parsedKeyId || !parsedTimestamp || !parsedNonce || !parsedSignature) {
|
403
410
|
return invalidAuthorizationTokenFormat;
|
404
411
|
}
|