Comparing version 6.14.0 to 6.14.1
@@ -70,3 +70,8 @@ "use strict"; | ||
if (this.cache.hasAccessToken) { | ||
return this.cache.getAccessToken(); | ||
const token = this.cache.getAccessToken(); | ||
// New connections won't have an access token so ensure we set here. | ||
if (!connection.accessToken) { | ||
connection.accessToken = token; | ||
} | ||
return token; | ||
} | ||
@@ -73,0 +78,0 @@ else { |
{ | ||
"name": "mongodb", | ||
"version": "6.14.0", | ||
"version": "6.14.1", | ||
"description": "The official MongoDB driver for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -97,3 +97,8 @@ import { setTimeout } from 'timers/promises'; | ||
if (this.cache.hasAccessToken) { | ||
return this.cache.getAccessToken(); | ||
const token = this.cache.getAccessToken(); | ||
// New connections won't have an access token so ensure we set here. | ||
if (!connection.accessToken) { | ||
connection.accessToken = token; | ||
} | ||
return token; | ||
} else { | ||
@@ -100,0 +105,0 @@ const token = await this.callback(credentials); |
Sorry, the diff of this file is not supported yet
3771964
78623