We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50c44ee commit d6fb8a4Copy full SHA for d6fb8a4
1 file changed
src/cmap/auth/scram.ts
@@ -232,10 +232,11 @@ function passwordDigest(username: string, password: string) {
232
233
let nodeCrypto;
234
try {
235
+ // TODO: NODE-7424 - remove dependency on 'crypto' for SCRAM-SHA-1 authentication
236
// eslint-disable-next-line @typescript-eslint/no-require-imports
237
nodeCrypto = require('crypto');
238
} catch (e) {
- throw new MongoRuntimeError('Crypto support is required for SCRAM-SHA-1 authentication', {
239
+ throw new MongoRuntimeError('global crypto is required for SCRAM-SHA-1 authentication', {
240
cause: e
241
});
242
}
0 commit comments