DEV Community

Discussion on: So I created Spotify Clone in React(kinda)

 
bryanelalami profile image
bryanelalami

There is also another problem that I'm facing... const redirectUri seems to be incorrect. When deploying the website with firebase , when logged in, it redirects me to localhost:3000 and because the server is down, it keeps me redirecting to the wrong URL

Thread Thread
 
fvukojevic profile image
Ferdo Vukojević

I would suggest you use your own clientId. It is very simple to get at developer.spotify.com/dashboard
RedirectUri gets pulled from window.location.origin so it should work as long as you setup inside your dashboard the same uri your app is hosted on.

So steps would be:
Go to spotify dashboard for developers, create an app, take the clientId and place it inside spotify.js file.
And then inside the spotify dashboard in edit settings, set the redirect url to match the url your app is hosted.

Thread Thread
 
bryanelalami profile image
bryanelalami

It would be great to jump on a call , are you available ?