File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,9 @@ export class ConnectionManager extends EventEmitter<ConnectionManagerEvents> {
207207
208208 private onOidcAuthFailed ( error : unknown ) : void {
209209 if ( this . state . tag === "connecting" && this . state . connectionStringAuthType ?. startsWith ( "oidc" ) ) {
210- this . changeState ( "connection-errored" , { tag : "errored" , errorReason : String ( error ) } ) ;
211- void this . disconnect ( ) ;
210+ void this . disconnect ( ) . then ( ( ) => {
211+ this . changeState ( "connection-errored" , { tag : "errored" , errorReason : String ( error ) } ) ;
212+ } ) ;
212213 }
213214 }
214215
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ export const LogId = {
6060 exportLockError : mongoLogId ( 1_007_008 ) ,
6161
6262 oidcFlow : mongoLogId ( 1_008_001 ) ,
63- oidcClientError : mongoLogId ( 1_008_002 ) ,
64- oidcAuthFailed : mongoLogId ( 1_008_003 ) ,
6563} as const ;
6664
6765interface LogPayload {
You can’t perform that action at this time.
0 commit comments