Spotify unauthenticated: throttled log + admin reconnect on Listening widget
Deploy with Docker Compose / deploy (push) Successful in 40s
Deploy with Docker Compose / deploy (push) Successful in 40s
- Backend logs a rate-limited (1/h) "not authenticated" line when a resolver finds the Spotify client nil instead of silently degrading to null. - New public-but-gated spotifyNeedsReauth query: false for everyone except an admin session whose backend has no client. - The /stp Listening widget offers admins a "Reconnect Spotify" button that hits /api/spotify/auth and navigates to the returned authorisation URL; non-admins still see the widget degrade as before. Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
@@ -34,4 +34,8 @@ type SpotifyRecentItem {
|
||||
extend type Query {
|
||||
spotifyListening: SpotifyPlaying
|
||||
spotifyRecent: [SpotifyRecentItem!]
|
||||
# True only for an admin session while the backend lacks a Spotify client
|
||||
# (OAuth never completed or the token was revoked), used by the Listening
|
||||
# widget to offer a reconnect link. Everyone else gets false.
|
||||
spotifyNeedsReauth: Boolean!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user