Skip to content

Conversation

@deepikaSingh2711
Copy link
Collaborator

Describe your changes

Fixed runtime error in 'generateSDMBearerToken'
When the user-token request fails, the catch block incorrectly calls 'reject(err)' even though the caught error object is named 'error'. This results in rejecting an undefined value and causes a runtime crash.
The fix updates the rejection to 'reject(error)', ensuring proper error propagation and preventing application crashes.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.
  • I have ran integration tests on my cloud environment.
  • I have validated blackduck portal for any vulnerability after my commit.

Upload Screenshots/lists of the scenarios tested

  • I have Uploaded Screenshots or added lists of the scenarios tested in description

TENANCY_MODEL=single npm run integration-test

Screenshot 2026-01-20 at 1 57 24 PM

TENANCY_MODEL=multi TENANT=SDM-DEV-CONSUMER-EU12 npm run integration-test

Screenshot 2026-01-20 at 3 01 02 PM

TENANCY_MODEL=multi TENANT=SDMGoogleWorkspaceConsumer npm run integration-test

Screenshot 2026-01-20 at 3 03 02 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants