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

Method put

src/cmap/auth/mongodb_oidc/token_cache.ts:46–53  ·  view source on GitHub ↗
(response: OIDCResponse, idpInfo?: IdPInfo)

Source from the content-addressed store, hash-verified

44 }
45
46 put(response: OIDCResponse, idpInfo?: IdPInfo) {
47 this.accessToken = response.accessToken;
48 this.refreshToken = response.refreshToken;
49 this.expiresInSeconds = response.expiresInSeconds;
50 if (idpInfo) {
51 this.idpInfo = idpInfo;
52 }
53 }
54
55 removeAccessToken() {
56 this.accessToken = undefined;

Callers 5

insert.test.tsFile · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected