Skip to content

Commit

Permalink
redirect commit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vinfinity7 authored Jul 3, 2023
1 parent 0f4b8bb commit 0352516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function redirectToAuthCodeFlow(clientId) {
const params = new URLSearchParams();
params.append("client_id", clientId);
params.append("response_type", "code");
params.append("redirect_uri", "https://spotify-saksham.netlify.app/dist/index.html");
params.append("redirect_uri", "https://benevolent-puffpuff-87e6bb.netlify.app/dist/index.html");
params.append("scope", "user-read-private user-read-email user-read-playback-state user-top-read playlist-read-private user-read-recently-played");
params.append("code_challenge_method", "S256");
params.append("code_challenge", challenge);
Expand Down Expand Up @@ -72,7 +72,7 @@ async function getAccessToken(clientId, code) {
params.append("client_id", clientId);
params.append("grant_type", "authorization_code");
params.append("code", code);
params.append("redirect_uri", "https://spotify-saksham.netlify.app/dist/index.html");
params.append("redirect_uri", "https://benevolent-puffpuff-87e6bb.netlify.app/dist/index.html");
params.append("code_verifier", verifier);

const result = await fetch("https://accounts.spotify.com/api/token", {
Expand Down

0 comments on commit 0352516

Please sign in to comment.