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

Refresh the Spotify token when needed #37

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joaopms
Copy link

@joaopms joaopms commented Sep 5, 2024

TL;DR: The overlay continues working after 60 minutes.

This project was with using Spotify's Implicit Grant flow, which only worked for 60 minutes. After that, the access token used to fetch the currently playing song expires and the overlay stops updating.

By migrating to the Authorization Code with PKCE flow, we're now able to refresh the access token for as long as we need, meaning the overlay continues updating even after 60 minutes.

Fixes #21 and fixes #28 and fixes #39


Dependencies had to be updated to run on the latest Node.js LTS (version 20), which should close all of @app/dependabot PRs

Copy link

vercel bot commented Sep 5, 2024

@joaopms is attempting to deploy a commit to the Raphael Marco's projects Team on Vercel.

A member of the Team first needs to authorize it.

@joaopms
Copy link
Author

joaopms commented Feb 13, 2025

Even though this PR hasn't been merged, the repo with all the fixes is public (including #38) and deployed at https://joaopms.github.io/spotify-now-playing-overlay.

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

Successfully merging this pull request may close these issues.

Overlay Stops working after 60mins The overlay stops working overtime. How To Self-Host?
1 participant