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

Make Token a Global Variable #460

Open
shahdivyank opened this issue Sep 15, 2024 · 0 comments
Open

Make Token a Global Variable #460

shahdivyank opened this issue Sep 15, 2024 · 0 comments

Comments

@shahdivyank
Copy link
Owner

  • Currently we generate a new token every API call, which is not ideal, since its an extra API call even though the tokens last for an hour
  • Need to put the token into zustand so that we have persistence across our tokens and use them within Spotify
  • Will need to add some validation logic to make sure if the token is expired then to generate a new one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants