Authentication
Login, logout, and OAuth provider flows
📄️ Login page
Returns the HTML login form. No authentication required.
📄️ Submit login credentials
Authenticates the user against a Navidrome instance. On success, sets the `spotter_token`
📄️ Log out
Clears the session cookie and redirects to the login page.
📄️ Initiate Spotify OAuth
Redirects the user to Spotify's OAuth authorization page.
📄️ Spotify OAuth callback
Handles the OAuth callback from Spotify. Exchanges the authorization code for tokens and stores the Spotify integration credentials.
📄️ Initiate Last.fm OAuth
Redirects the user to Last.fm's OAuth authorization page.
📄️ Last.fm OAuth callback
Handles the OAuth callback from Last.fm. Exchanges the token for a session key and stores the Last.fm integration credentials.