我在使用React.js 时遇到错误
export const authEndpoint = "https://accounts.spotify.com/authorize";
const redirectUri = "http:/localhost:3000/";
const clientId ="XXXXXXXX";
const scopes = [
"user-read-currently-playing",
"user-read-recently-played",
"user-read-playback-state",
"user-top-read",
"user-modify-playback-state",
];
export const loginUrl = `${authEndpoint}?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scopes.join("%20")}&response_type=token&show_dialog=true`;
尝试查看Spotify dashbord上的注册url,您必须在应用上设置相同的url