MCPcopy
hub / github.com/mongodb/node-mongodb-native / auth

Method auth

src/cmap/auth/scram.ts:50–60  ·  view source on GitHub ↗
(authContext: AuthContext)

Source from the content-addressed store, hash-verified

48 }
49
50 override async auth(authContext: AuthContext) {
51 const { reauthenticating, response } = authContext;
52 if (response?.speculativeAuthenticate && !reauthenticating) {
53 return await continueScramConversation(
54 this.cryptoMethod,
55 response.speculativeAuthenticate,
56 authContext
57 );
58 }
59 return await executeScram(this.cryptoMethod, authContext);
60 }
61}
62
63function cleanUsername(username: string) {

Callers

nothing calls this directly

Calls 2

executeScramFunction · 0.85

Tested by

no test coverage detected