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

Method equals

src/cmap/auth/mongo_credentials.ts:151–158  ·  view source on GitHub ↗

Determines if two MongoCredentials objects are equivalent

(other: MongoCredentials)

Source from the content-addressed store, hash-verified

149
150 /** Determines if two MongoCredentials objects are equivalent */
151 equals(other: MongoCredentials): boolean {
152 return (
153 this.mechanism === other.mechanism &&
154 this.username === other.username &&
155 this.password === other.password &&
156 this.source === other.source
157 );
158 }
159
160 /**
161 * If the authentication mechanism is set to "default", resolves the authMechanism

Callers 1

authMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected