mirror of
https://github.com/francoborrelli/spotify-react-web-client.git
synced 2026-04-27 04:15:50 +03:00
[GH-ISSUE #51] unsupported_response_type #64
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-react-web-client#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nygosaki on GitHub (Dec 26, 2025).
Original GitHub issue: https://github.com/francoborrelli/spotify-react-web-client/issues/51
When attempting to access spotify-react-web-client.onrender.com, it automatically redirects me to https://spotify-react-web-client.onrender.com/#error=unsupported_response_type and displays a loading screen.
I am on macos tahoe using arc browser.
This behaviour started after I tried embedding the site using an iframe. However I am no longer able to even access the site normally.
@francoborrelli commented on GitHub (Dec 29, 2025):
🛠️ What’s causing the
unsupported_response_typeerrorThe reason your browser gets redirected to
https://spotify-react-web-client.onrender.com/#error=unsupported_response_typeand you see the loading screen is related to Spotify’s OAuth changes.Spotify has deprecated the Implicit Grant Flow (
response_type=token), which was previously used for client-side authentication in single-page/web apps. After November 27, 2025, Spotify stopped supporting this flow, so any request to/authorizewithresponse_type=tokenwill now fail withunsupported_response_type. Link🚨 Why this happened
✅ What I changed
To fix this and restore the app’s authentication flow, I migrated the OAuth implementation to Authorization Code with PKCE, which is now the recommended authentication flow for web apps (especially SPAs). Link
Here’s what was done:
response_type=codeinstead oftoken.code_challengeandcode_challenge_method) to the/authorizerequest./api/tokenendpoint with PKCE.