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

v2 - Improve the Auth Workflow #28

Closed
waldothedeveloper opened this issue Jan 27, 2023 · 1 comment
Closed

v2 - Improve the Auth Workflow #28

waldothedeveloper opened this issue Jan 27, 2023 · 1 comment
Assignees

Comments

@waldothedeveloper
Copy link
Collaborator

The token expires after 24 hours. Improve the app so that it "refreshes" the token for the user, which would result in fewer login screens for the user and a better UX.

@waldothedeveloper waldothedeveloper self-assigned this Jan 27, 2023
@waldothedeveloper
Copy link
Collaborator Author

The react-spotify-auth package doesn't offer a refresh_token, which is being requested here by some fellow devs:
kevin51jiang/react-spotify-auth#3

If I'm not mistaken, I would need a server-to-server environment to work with a refresh_token from Spotify API to be able to request additional tokens to avoid the annoying situation of having to sign in to the app every two hours. But ReactJS is a client-only application...

https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/

So...while this can be achieved using NextJS or similar, it would extend the length of this project beyond the scope of creating playlists based on predefined genres.

I would like to work on the next project instead @scott-coates :)

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

When branches are created from issues, their pull requests are automatically linked.

1 participant