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

Make it easier to re-auth to orgs with expired access/refresh token #5998

Open
randi274 opened this issue Jan 8, 2025 · 2 comments
Open
Labels
type:enhancements Feedback to take into account for existing features

Comments

@randi274
Copy link
Contributor

randi274 commented Jan 8, 2025

Is your feature request related to a problem? Please describe.
I occasionally use VMs to run testing, and because I can go a few months between authing into an org, the access token is expired. There is no easy way to re-auth into the org, but I would like re-auth to happen automatically! This specific error happened when I was trying to open the org to check the auth status.

Screenshot 2025-01-08 at 12 33 20 PM

Describe the solution you'd like
What would be great is if we receive an error for the expired auth/refresh token, we ask if the user would like to either:

  • Reauthenticate (maybe ask if they want to change the alias, but maybe not - I usually named the org specifically before)
  • Remove the org

Describe alternatives you've considered
Today, I need to log out, or log back in with the same alias. Sometimes I get the alias wrong, or add multiple aliases, which I don't want either. And there have been times where auth has been weird and I haven't been able to re-auth with the same alias, which is an extra frustrating pain.

Additional context
This is related to @mshanemc's previous request to check for the org connection (#1073). It would also be great if we could proactively check for expired orgs and provide the opportunity to reauth. The extensions can get weird sometimes when we're not authed as he pointed out, and that's partly why I went to the open the org to see if it needed a new auth token... I would rather the extensions know that it's expired and help me fix my org state.

@randi274
Copy link
Contributor Author

randi274 commented Jan 8, 2025

Also related: others struggling with the same issues. Workarounds are a pain. https://salesforce.stackexchange.com/questions/350610/error-authenticating-with-the-refresh-token-due-to-expired-access-refresh-token

@svc-idee-bot svc-idee-bot added the type:enhancements Feedback to take into account for existing features label Jan 8, 2025
@svc-idee-bot
Copy link
Collaborator

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming session. We prioritize feature requests with more upvotes and comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancements Feedback to take into account for existing features
Projects
None yet
Development

No branches or pull requests

2 participants