File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import {
39
39
now ,
40
40
promiseWithResolvers
41
41
} from '../utils' ;
42
- import type { MongoDBOIDC } from './auth/mongodb_oidc' ;
43
42
import { connect } from './connect' ;
44
43
import { Connection , type ConnectionEvents , type ConnectionOptions } from './connection' ;
45
44
import {
@@ -429,19 +428,6 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
429
428
return ;
430
429
}
431
430
432
- // If we are clearing the connnection pool when using OIDC, we need to remove the access token
433
- // from the cache so we dont' try to use the same token again for initial auth on a new connection
434
- // when the token may have expired.
435
- const clientState = this . server . topology . client . s ;
436
- const credentials = clientState . options . credentials ;
437
- if ( credentials ?. mechanism === 'MONGODB-OIDC' ) {
438
- const provider = this . server . topology . client . s . authProviders . getOrCreateProvider (
439
- credentials . mechanism ,
440
- credentials . mechanismProperties
441
- ) as MongoDBOIDC ;
442
- provider . workflow . cache . removeAccessToken ( ) ;
443
- }
444
-
445
431
// handle load balanced case
446
432
if ( this . loadBalanced ) {
447
433
const { serviceId } = options ;
You can’t perform that action at this time.
0 commit comments