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

fix: redirect fixes #49

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ REACT_APP_SPOTIFY_CLIENT_SECRET="Spotify_Client_Secret"
### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
Open [https://rewrapped.up.railway.app/](https://rewrapped.up.railway.app/) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.
Expand Down
2 changes: 1 addition & 1 deletion src/components/appBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const handleSpotifyConnect = () => {
const authorizationEndpoint = "https://accounts.spotify.com/authorize";
const queryParams = new URLSearchParams({
client_id: process.env.REACT_APP_SPOTIFY_CLIENT_ID,
redirect_uri: "http://localhost:3000/dashboard",
redirect_uri: "https://rewrapped.up.railway.app/dashboard",
scope:
"user-read-private user-read-email user-top-read user-library-read playlist-read-private",
response_type: "code",
Expand Down
2 changes: 1 addition & 1 deletion src/utility/spotifyAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const exchangeSpotifyToken = async (code) => {
new URLSearchParams({
grant_type: "authorization_code",
code: code,
redirect_uri: "http://localhost:3000/dashboard",
redirect_uri: "https://rewrapped.up.railway.app/dashboard",
client_id: process.env.REACT_APP_SPOTIFY_CLIENT_ID,
client_secret: process.env.REACT_APP_SPOTIFY_CLIENT_SECRET,
}),
Expand Down
Loading