Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid stale org tokens #737

Merged
merged 5 commits into from
Feb 11, 2025
Merged

fix: avoid stale org tokens #737

merged 5 commits into from
Feb 11, 2025

Conversation

mshanemc
Copy link
Contributor

What does this PR do?

the org passed in to ST is now set on the RSTS when it's recycled from the instanceCache.

What issues does this PR fix or reference?

The error this solves is having an old Org whose token has expired, AND the Org is using the AccessToken auth method where refresh is not possible.

this probably never affected CLI commands, but will hurt people using this lib in a server AND using AccessToken auth @W-17700024

@mshanemc mshanemc requested a review from a team as a code owner January 31, 2025 18:33
@mshanemc mshanemc merged commit 2f1f8da into main Feb 11, 2025
23 checks passed
@mshanemc mshanemc deleted the sm/avoid-stale-org-tokens branch February 11, 2025 22:17
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.

3 participants