JonWash86 / Bonsai-Radio

A playlist management application which leverages the spotify and last.fm apis to bring joy to music nerds
http://www.bonsairadio.com
1 stars 1 forks source link

Send user back to spotify authorization flow if their token expires. #38

Open JonWash86 opened 4 years ago

JonWash86 commented 4 years ago

If you leave the app running in the browser and return to it, your token will have expired and nothing will happen. If we send the user back to the spotify authorization flow when calls to the spotify api fail with a 401, we can keep the user on track.