rspotify icon indicating copy to clipboard operation
rspotify copied to clipboard

refreshing client_credentials

Open markusherzog opened this issue 10 years ago • 3 comments

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 avatar Oct 14 '15 09:10 markusherzog

@markusherzog this was added in https://github.com/guilhermesad/rspotify/commit/27944b72894a38ae0951b43edca91a0a2702ba4e. Have you experienced any bugs on that?

guilhermesad avatar Oct 14 '15 21:10 guilhermesad

I think you can close this issue, it's related to #64 most probably.

rojosinalma avatar Oct 21 '15 13:10 rojosinalma

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?

mrj avatar Feb 17 '17 03:02 mrj