Announcements

Help Wizard

Step 1

NEXT STEP

INVALID_CLIENT: Invalid redirect URI

Solved!

INVALID_CLIENT: Invalid redirect URI

I am developing a practice using Spotify's API in SwiftUI. However, the API is unable to authenticate and returns only INVALID_CLIENT: Invalid redirect URI. However, the ClientID and RedirectURL match. If I set the ID and URL of the project I used before, it succeeds. This is a mystery. How do you resolve the symptom?

(iOS 10, Android Oreo, Windows 10,etc.)

 

My Question or Issue

 

Reply

Accepted Solutions
Marked as solution

The API has been modified and is now usable!

View solution in original post

9 Replies

Hi @Iccyan21 

Thank you for posting in the Spotify Community, and Welcome!

 

It could be that your app is (still) using the wrong redirect URI. You can check this by copying the URL from the INVALID_CLIENT page from your browser, and decoding it using a tool like URL Decoder/Encoder.

 

Let me know how it goes.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

@Ximzend, the problem seems to be with the changes they implemented on April 9 (https://developer.spotify.com/blog/2025-02-12-increasing-the-security-requirements-for-integrating-w...). If you try the Demo apps they have in the GitHub repo of the iOS SDK, they are not working with newly created apps. They only works with apps created before 9 of April.

Yes, that's right. I've been looking into it and that API bug seems to be the right one. I also tried the tutorial in the official documentation and got the same error. I hope it will be fixed soon.

I checked and the dashboard and iOS URLs match perfectly. I checked and it seems that the bug in that API is correct. I also tried the tutorial in the official documentation and got the same error. If you have time please try the iOS d docs. I get the same error.

Marked as solution

The API has been modified and is now usable!

I've reported this issue to the Spotify Team, and it is under investigation.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Teve alguma resolução esse erro ?

has it been resolved yet ?


I am still getting invalid Clinet ID : rediect uri

I recommend you to perform a clean reinstall of the app, ass described on this page.

If that on it's own does not help, you can try to change the proxy type to "No proxy". You can do this by clicking Settings → Proxy type: No proxy → Restart App

Let me know how it goes.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random