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

Cannot find a method to refresh an access token #281

Open
Chee7ah opened this issue Dec 6, 2021 · 1 comment
Open

Cannot find a method to refresh an access token #281

Chee7ah opened this issue Dec 6, 2021 · 1 comment

Comments

@Chee7ah
Copy link

Chee7ah commented Dec 6, 2021

There is the generateAccessToken method of the ApiClient for generating an access token from the authorization code.

There is also the platform documentation's "Use refresh tokens" section that says that changing the grant_type from authorization_code to refresh_token and supplying a refresh_token instead of code param should make the same flow work for refreshing one.

There is however no way that I can see to refresh a token with the available methods in this package.

  1. Am I just missing it?
  2. Is it not included for a reason? (the php client seems to have it, the java client seems to be also missing it)
  3. Can we add it? If so, made PR Add method for refreshing an access token #282 for it.
@acooper4960
Copy link
Contributor

Hello @Chee7ah thank you for reaching out on this topic. We are looking into extending this feature across all of our SDKs

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

No branches or pull requests

2 participants