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

Refresh token not updated when doing ?grant_type=refresh_token flow #21

Closed
viperet opened this issue May 27, 2024 · 1 comment · Fixed by #22
Closed

Refresh token not updated when doing ?grant_type=refresh_token flow #21

viperet opened this issue May 27, 2024 · 1 comment · Fixed by #22

Comments

@viperet
Copy link
Contributor

viperet commented May 27, 2024

When getting a new access_token using the Refresh Token flow, Upwork returns a valid access_token plus an updated refresh_token. The old refresh_token is still valid but expires in 1-2 days. To work correctly beyond this period, the library should update refresh_token each time a new access_token is requested. Currently, after 1-2 days, it stops working with an error:

Fatal error:  Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_grant in /var/www/foobar/vendor/league/oauth2-client/src/Provider/GenericProvider.php:236
@mnovozhylov
Copy link
Contributor

Fixed in v2.4.3

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 a pull request may close this issue.

2 participants