trying to host my web project , and it doesn't let me to log in when using spotify log-in API
while trying to log in it gives Error: INVALID_CLIENT: Invalid redirect URI,
I have searched in google how to fix this problem a lot of people saying to go to my app on spotify developer dashboard and click edit on my project and put my site as a callback function or my localhost , tried multiple sites but it still doesn't work, btw the redirect URL site is the site I want it to redirect to
const redirect_url = "https://sbproject.netlify.app/";
const logout = () => {
window.localStorage.removeItem("token");
};
return (
<div className="topnav-items">
<div className="nav-log">
<ul className="first-ul">
{token && (
<div className="btn">
<li>
<a href={redirect_url} onClick={logout}>
Log-out
</a>
</li>
</div>
)}