spotify / spotify-web-playback-sdk-example

React based example app that creates a new player in Spotify Connect to play music from in the browse using Spotify Web Playback SDK.
Apache License 2.0
149 stars 202 forks source link

INVALID_CLIENT: Invalid redirect URI #4

Closed rijobro closed 1 year ago

rijobro commented 1 year ago

I haven't changed any files, I simply added the .env file with the credentials as per the readme. After authentication, the following text is displayed on screen:

INVALID_CLIENT: Invalid redirect URI

chettriyuvraj commented 1 year ago

The redirect_uri used in /server/index.js must match the redirect_uri on your Spotify App (@ developers.spotify.com). Go to 'Edit Settings' on your Spotify App and set redirect_uri to 'http://localhost:3000/auth/callback'. I think you should be good.

rijobro commented 1 year ago

Correct, apologies about that!