The Spotify token expires after 1 hour, requiring a new one to be pasted. Is there a way to automatically fetch a fresh token when the old one becomes invalid?
Is it possible to automatically retrieve and store this token?
I plan to store the token in a variable called token
.
return this.$http.get("https://api.spotify.com/v1/search",
{Header: {'Authorization': `${token}`}, params})