Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify token expiry #25

Open
chriship opened this issue Dec 18, 2020 · 0 comments
Open

Spotify token expiry #25

chriship opened this issue Dec 18, 2020 · 0 comments

Comments

@chriship
Copy link

I noticed that the Spotify token expires after 1 hour and the refresh token logic is not working properly.

I think it's because the access token is marked as const in player.js the following code fixes it for me:

const player = new Player({
    name: "Vue Spotify Web Player",
    getOAuthToken: (cb) => {
        cb(rootGetters["auth/getAccessToken"]);
    }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant