缺少必需参数:spotify 克隆中的 redirect_uri

时间:2021-06-27 03:53:22

标签: reactjs

为什么我在克隆 Spotify 应用程序时会收到此错误“缺少必需的参数:redirect_uri”

export const authentication="https://accounts.spotify.com/authorize";
const redirectURI="http://localhost:3000/";
const clientID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const scopes= [
    "user-read-currently-playing",
    "user-read-recently-played",
    "user-read-playback-state",
    "user-top-read",
    "user-modify-playback-state",
];

export const loginUrl=`${authentication}?client_id=${clientID}?redirecturi=${redirectURI}${scopes.join("%20")}&response_type=token&show_dialog=true`; 

0 个答案:

没有答案