Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy problems #25

Open
gopigaurav opened this issue Dec 7, 2020 · 7 comments
Open

deploy problems #25

gopigaurav opened this issue Dec 7, 2020 · 7 comments

Comments

@gopigaurav
Copy link

the deployed site shows 'This site can’t be reached' after authentication. After i press continue instead to showing the spotify app it renders site not found. Any help plz

@JunaidShamnad
Copy link

@gopigaurav
1. Just go to the file spotify.js in the src folder and change the const redirectUri from http://localhost:3000/ to const redirectUri = "Your Firebase app link";

2 Go and change the redirect URi's in the spotify developer dashboards => Your App => Edit settings => Redirect URIs from http://localhost://3000/ to Your Firebase app link.

3 If all this are done then rehost it in firebase ,the issues will be solved.

@JunaidShamnad
Copy link

@gopigaurav @CleverProgrammer

You can check my work Spotify-Clone

https://spotify-clone-a0f24.web.app/

Source Code (GitHub)

@ericcapiz
Copy link

@gopigaurav @CleverProgrammer

You can check my work Spotify-Clone

https://spotify-clone-a0f24.web.app/

Source Code (GitHub)

@JunaidShamnad
hey, if u remove the token from the from line 28 in ur app js then when other people log into your app, their playlist will show up instead of the "forced" playlist that is within that access token. also would need to add it to the initial state in your reducer and leave it as an empty string.

@SoftwareGuyAshish
Copy link

@gopigaurav 1. Just go to the file spotify.js in the src folder and change the const redirectUri from http://localhost:3000/ to const redirectUri = "Your Firebase app link";

2 Go and change the redirect URi's in the spotify developer dashboards => Your App => Edit settings => Redirect URIs from http://localhost://3000/ to Your Firebase app link.

3 If all this are done then rehost it in firebase ,the issues will be solved.

Thanks buddy! It worked.

@HrstPathak
Copy link

After Deploying it in firebase and after authenticating the page thow error saying invalid_client :invalid redirect uri...
can anyone please help???

@gopigaurav
Copy link
Author

gopigaurav commented Aug 4, 2022

After Deploying it in firebase and after authenticating the page thow error saying invalid_client :invalid redirect uri... can anyone please help???

change the redirect url in spotify as well

@HrstPathak
Copy link

After Deploying it in firebase and after authenticating the page thow error saying invalid_client :invalid redirect uri... can anyone please help???

change the redirect url in spotify as well

After clicking on the "LOGIN SPOTIFY Button" the URL become like https://spotify-clone-webapp-1.web.app/?code=AQBgQ6WIU9g0NSFl_VTFWKjvQftIgBSN0jW8qQ4aVo8hzTNQ5wzVM0O3zkKQ8d54AZsaKDUyDWU3ei6JZnNlJ4v-bfeoMcCLTRNrjUv1Z1Y_IAeiwPDOQTWOGUMrZD4yA44ltavievpa_aZdG6duBbuifLBdUm-PAnl3fKuCPjEvSBpsPDE3ylJdl_G3WxEBlsa5Ldr5_Tqjbad8QEXmRogTnLzecKP_Us_WrB0xhUYpODvZ2Y_l and nothing happened..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants