Spotify authentication failed due to redirect URI issue

Hey everyone, I’m stuck with a Spotify Web API problem. I’m trying to set up user authentication in my app, but I keep getting this error:

INVALID_CLIENT: Invalid redirect URI

Here’s what I’m using for the authorization request:

GET https://accounts.spotify.com/authorize/
    ?client_id=1234abcd5678efgh9012ijkl
    &response_type=code
    &redirect_uri=https://myapp.com/callback
    &scope=user-read-private user-read-email

I’ve double-checked everything, but I can’t figure out what’s wrong. Has anyone run into this before? Any ideas on how to fix it? I’d really appreciate some help!

hey surfingwave, i had a similar issue. check if ur redirect URI in the spotify developer dashboard strictly matches what u used in the request; even a stray slash can cause the error. also, make sure ur URI is whitelisted in ur app settings. hope it helps!