Description
Automatically refresh Spotify OAuth tokens when expired to avoid failed API calls.
Reasoning
Ensures uninterrupted gameplay and reduces authentication errors.
Proposed Implementation
Check API response for 401 Unauthorized. If detected, request a token refresh from the OAuth server and retry the request.
Description
Automatically refresh Spotify OAuth tokens when expired to avoid failed API calls.
Reasoning
Ensures uninterrupted gameplay and reduces authentication errors.
Proposed Implementation
Check API response for 401 Unauthorized. If detected, request a token refresh from the OAuth server and retry the request.