diff --git a/package.json b/package.json index a04f940f..d3687994 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "sinon": "^15.0.0", "supertest": "^6.1.3", "type-fest": "^4.0.0", - "typescript": "~5.1.3" + "typescript": "~5.2.2" }, "scripts": { "lint": "eslint --cache .", diff --git a/src/AuthRegistry.js b/src/AuthRegistry.js index 1345584f..32acaed7 100644 --- a/src/AuthRegistry.js +++ b/src/AuthRegistry.js @@ -1,8 +1,8 @@ import assert from 'node:assert'; -import crypto from 'node:crypto'; +import nodeCrypto from 'node:crypto'; import { promisify } from 'node:util'; -const randomBytes = promisify(crypto.randomBytes); +const randomBytes = promisify(nodeCrypto.randomBytes); class AuthRegistry { #redis;