Javascript spotify ivalid重定向URI
我正在尝试让spotify对用户进行身份验证,以便将他们的数据拉入我的web应用程序Javascript spotify ivalid重定向URI,javascript,api,authentication,spotify,spotify-app,Javascript,Api,Authentication,Spotify,Spotify App,我正在尝试让spotify对用户进行身份验证,以便将他们的数据拉入我的web应用程序 export const loginUrl = `${authEndpoint}? client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scopes.join("%20")}&response_type=token&show_dialog=true`; 当我在本地主机上构建项目时,我的redri
export const loginUrl = `${authEndpoint}? client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scopes.join("%20")}&response_type=token&show_dialog=true`;
当我在本地主机上构建项目时,我的redriectURI是localhost:3000。现在,我把它切换到了它所在的url(你自己试试),在我的代码中,在spotify开发者控制台上。不确定该做什么或如何解决问题我认为您需要将每个重定向URI注册到Spotify的开发者仪表板:
您需要更改代码和Spotify仪表板中的
重定向URI
。出现这些问题是因为它们不匹配。