badmfck-api-server 4.0.95 → 4.0.96
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.
|
@@ -62,7 +62,7 @@ class MicroserviceClient extends BaseService_1.BaseService {
|
|
|
62
62
|
const ts = Date.now().toString();
|
|
63
63
|
const nonce = crypto_1.default.randomBytes(12).toString("hex");
|
|
64
64
|
const maxAttempts = 10;
|
|
65
|
-
const attemptTimeout =
|
|
65
|
+
const attemptTimeout = 1000;
|
|
66
66
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
67
67
|
const rawSecret = Buffer.from(this.options.securityKey, "base64");
|
|
68
68
|
const key = crypto_1.default.createHash("sha256").update(rawSecret).digest();
|