rspotify
rspotify copied to clipboard
refreshing client_credentials
Hi, I noticed that the client_credentials are not refreshed when they have expired, like for example with the users' access_tokens. Would you say it'd make sense to do the same here? Are you even planning to add that? Maybe I could give it a try. Any additional information would be highly appreciated :-)
@markusherzog this was added in https://github.com/guilhermesad/rspotify/commit/27944b72894a38ae0951b43edca91a0a2702ba4e. Have you experienced any bugs on that?
I think you can close this issue, it's related to #64 most probably.
Without a callback like access_token_was_refreshed that allows the database hash to be updated with the new access token and expiry time, won't any request after the initial auth token expires (one hour) always unnecessarily first make a call to get a new access token?