Skip to content

Commit 61e6147

Browse files
committed
fixup: review comment
1 parent 5de0231 commit 61e6147

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ export class MongoDBOIDCPluginImpl implements MongoDBOIDCPlugin {
928928
const tokenSetId = getStableTokenSetId(state.currentTokenSet.set);
929929

930930
// We would not want to return the access token or ID token of a token set whose
931-
// accompanying refresh token was passed to us by
931+
// accompanying refresh token was passed to us by the driver
932932
const willRetryWithForceRefreshOrReauth =
933933
!forceRefreshOrReauth &&
934934
!!state.discardingTokenSets?.includes(tokenSetId);

src/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export function getRefreshTokenId(
137137
);
138138
}
139139

140+
// Identify a token set based on a hash of its contents
140141
export function getStableTokenSetId(tokenSet: TokenSet): string {
141142
const { access_token, id_token, refresh_token, token_type, expires_at } =
142143
tokenSet;

0 commit comments

Comments
 (0)