-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Link Spotify
Description: Connect user's Spotify account for playlist saving and enhanced features (not for login).
AC:
Frontend: "Connect Spotify" button in settings
Frontend: Spotify OAuth redirect flow
Backend: Spotify OAuth callback handler
Backend: Store encrypted refresh token in database
Backend: Token refresh logic when access expires
Frontend: Show connection status (connected/disconnected)
Frontend: Disconnect option
Backend: Delete tokens on disconnect
Frontend: Error handling for failed connection
Tech notes:
A “Connect To Spotify” button will open Spotify’s authorization page. There will be a backend route that handles Spotify’s redirect back to user, logic to store and refresh tokens, an UI to show if user is connected.
Use the Spotify developer app to get the client id and client secret to be used in the backend which will go in the env file
Button on the settings page to send user to the backend route (api/spotify) to start the Spotify connection flow.
Handle the Spotify callback and save refresh token in the FastApI.
Error handling
Metadata
Metadata
Assignees
Labels
Type
Projects
Status