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: refresh token manually doesn't support scope #167

Open
monsignore7 opened this issue Jan 22, 2025 · 0 comments
Open

fix: refresh token manually doesn't support scope #167

monsignore7 opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@monsignore7
Copy link

monsignore7 commented Jan 22, 2025

Description

Currently, when using the manager method "refreshToken" it adds automatically the scope to the request body, but in Salesforce token endpoint the scope param is not supported :/

**EDIT
I saw that manager performs the refresh token by itself and since the methods are the same, the request fails too

Steps To Reproduce

  1. Authenticate successfully with the loginAuthorizationCodeFlow method in Salesforce
  2. Invalidate access token returned from the login
  3. Manual refresh the token with the refreshToken method

Expected Behavior

It should be possible to decide whether or not to include the scope param in request when refreshing token

@monsignore7 monsignore7 added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant