Open seve opened 6 years ago
Hi, I think I have a possible solution for you, if you're interested?
I have the code pretty-much done -- just installing mongodb on my machine to test. Can I pick this up?
@fluffynuts By all means go for it. I should clarify that this application is following the client credentials flow, meaning that the token has no connection to the user itself, just the server that the web app is running on.
I am going to re open this issue for any one else wishing to tackle the task.
In some cases the app loses authentication and does not pick up a new token unless the dyno is rebooted.
What needs to be done is a rewiring of the api implementation to recognize when a 401 is received from Spotify and then update the auth token in response.
Relevant error code:
{ [WebapiError: Unauthorized] name: 'WebapiError', message: 'Unauthorized', statusCode: 401 }