You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No documentation on how to refresh a creator access token #16
To refresh your creator's access token you need to be connected via OAUth there was no example explaining how to do so. I recommend adding an example to the readme.md to explain how to do so.
This is the code i had to use in order to refresh the token
Hi! First of all, thanks for writing this code and letting us know about this gap in our documentation. We're in the middle of improvements to our client libs, and I'll be sure to forward this to the relevant parties so that they know about it.
@Vaerys-Dawn - did this code actually work for you? When I wanted to refresh my tokens, I had to change the following line in com.patreon.PatreonOAuth from
private static final String GRANT_TYPE_TOKEN_REFRESH = "token_refresh";
to private static final String GRANT_TYPE_TOKEN_REFRESH = "refresh_token";
as per the official Patreon docs. I'm about to submit a pull request with the change, but your comment above has made me second-guess myself.
Activity
jrsun commentedon Mar 19, 2018
Hi! First of all, thanks for writing this code and letting us know about this gap in our documentation. We're in the middle of improvements to our client libs, and I'll be sure to forward this to the relevant parties so that they know about it.
decmurphy commentedon Aug 30, 2018
@Vaerys-Dawn - did this code actually work for you? When I wanted to refresh my tokens, I had to change the following line in
com.patreon.PatreonOAuthfromprivate static final String GRANT_TYPE_TOKEN_REFRESH = "token_refresh";to
private static final String GRANT_TYPE_TOKEN_REFRESH = "refresh_token";as per the official Patreon docs. I'm about to submit a pull request with the change, but your comment above has made me second-guess myself.
vlanard commentedon Aug 30, 2018
You're right, this is a bug. Thanks for surfacing this @murphd37.
decmurphy commentedon Aug 30, 2018
Cool, pull request submitted @ #22