Skip to content

Commit d6fb8a4

Browse files
committed
add error message and todo
1 parent 50c44ee commit d6fb8a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cmap/auth/scram.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,11 @@ function passwordDigest(username: string, password: string) {
232232

233233
let nodeCrypto;
234234
try {
235+
// TODO: NODE-7424 - remove dependency on 'crypto' for SCRAM-SHA-1 authentication
235236
// eslint-disable-next-line @typescript-eslint/no-require-imports
236237
nodeCrypto = require('crypto');
237238
} catch (e) {
238-
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', {
239240
cause: e
240241
});
241242
}

0 commit comments

Comments
 (0)