Skip to content

Conversation

@durran
Copy link
Member

@durran durran commented Nov 12, 2025

Description

Converts the error code to a primitive JS number when checking reauthentication.

Summary of Changes

Calls valueOf() on the error code, which will return the JS number if it is the number primitive, or in the case where it is an Int32 will return the primitive number.

What is the motivation for this change?

NODE-7290

Release Highlight

OIDC Reauthentication now works with promoteValues: false

In the case where the MongoClient is configured with promoteValues: false, reauthentication will now properly succeed.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durran durran marked this pull request as ready for review November 13, 2025 12:33
@durran durran requested a review from a team as a code owner November 13, 2025 12:33
@dariakp dariakp self-assigned this Nov 13, 2025
@dariakp dariakp added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Nov 13, 2025
@dariakp dariakp merged commit 1cc3d1c into main Nov 13, 2025
26 of 29 checks passed
@dariakp dariakp deleted the NODE-7290 branch November 13, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants