vr-commons 1.0.190 → 1.0.191

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.
@@ -1,5 +1,5 @@
1
1
  export declare const ACCOUNT_RECOVERY_OTP_LENGTH = 4;
2
- export declare const ACCOUNT_RECOVERY_OTP_TTL_MINUTES = 10;
2
+ export declare const ACCOUNT_RECOVERY_OTP_TTL_MINUTES = 60;
3
3
  export declare const ACCOUNT_RECOVERY_MAX_OTP_ATTEMPTS = 5;
4
4
  /** Generate a zero-padded, cryptographically random account recovery code. */
5
5
  export declare function generateAccountRecoveryOTP(): string;
@@ -7,7 +7,7 @@ exports.verifyAccountRecoveryOTP = verifyAccountRecoveryOTP;
7
7
  exports.getAccountRecoveryOTPExpiry = getAccountRecoveryOTPExpiry;
8
8
  const crypto_1 = require("crypto");
9
9
  exports.ACCOUNT_RECOVERY_OTP_LENGTH = 4;
10
- exports.ACCOUNT_RECOVERY_OTP_TTL_MINUTES = 10;
10
+ exports.ACCOUNT_RECOVERY_OTP_TTL_MINUTES = 60;
11
11
  exports.ACCOUNT_RECOVERY_MAX_OTP_ATTEMPTS = 5;
12
12
  const ACCOUNT_RECOVERY_OTP_REGEX = /^\d{4}$/;
13
13
  const MIN_SECRET_BYTES = 32;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.190",
3
+ "version": "1.0.191",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",