moritz-schuessler / shuffle-it

Alternative Spotify-UI that adds functionality to shuffle saved albums
https://shuffle-it.moritzschuessler.dev/
0 stars 0 forks source link

Bug: When revisiting the page after a while, a client side error occurs #25

Closed moritz-schuessler closed 9 months ago

moritz-schuessler commented 9 months ago

When visiting the site on mobile after a while a client side error appears. This could be related to the access token not being refreshed properly

moritz-schuessler commented 9 months ago

Since the access_token will get invalid after an hour its needs to be refreshed with a refresh_token. In long sessions are error will occur when there wasn't a recent request to the backend.

Possible Solutions:

moritz-schuessler commented 9 months ago

Solved by checking for a valid access_token before fetching data