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

How to refresh the access token? #6

Open
vidarl opened this issue Apr 5, 2020 · 0 comments
Open

How to refresh the access token? #6

vidarl opened this issue Apr 5, 2020 · 0 comments

Comments

@vidarl
Copy link

vidarl commented Apr 5, 2020

Hi

First, I would like to thank you for giving some code on how to get the access_token.

But upon retrial of the access_token, you also get an refresh token.
Any idea how to use that refresh_token to get a new access_token ( which will expire after 3 days) ?

I tried a bold move of sending a POST request to /yapi/o/token/ with post_data grant_type=refresh_token&refresh_token=[....], but that give response {"error": "invalid_client"}

I kinda assume the invalid_client error really means bad request....

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

No branches or pull requests

1 participant