Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Redirect URI #23

Open
jordan-loeser opened this issue Dec 22, 2017 · 3 comments
Open

Invalid Redirect URI #23

jordan-loeser opened this issue Dec 22, 2017 · 3 comments

Comments

@jordan-loeser
Copy link

Hello! Thanks so much for putting together this helpful library! I am a little confused about how the redirect URI plays into a native environment. Could someone provide an example? Right now I am passing in a URI that matches that in my Spotify Developer Dashboard but I am getting an ERROR / Invalid Redirect URI message.

@viestat
Copy link
Owner

viestat commented Dec 22, 2017

Hello @jordan-loeser !
From SDK documentation : The Redirect URI will allow the Spotify authentication service to automatically launch your app again once the user has logged in.

Note that you also need to include the Redirect URI into the URL Schemes of URL Types of your Xcode Project. Located under the info tab (see step 7 of Setting Up Your Build Environment section)

Let me know if this helps :)

@jordan-loeser
Copy link
Author

@viestat Thanks for your quick response! I have set up a unique URI in Xcode, but I am still seeing the below screen after logging in on Spotify. The first time I log in and press "Log In", the screen just sits there. If I close out of the Safari window and press "Log in with Spotify" again I see this:
screen shot 2017-12-22 at 1 50 10 pm
Any ideas? I believe that the URL should be working, because if I type it in Safari it asks me if I want to open the app. Side note, I am just working in the ./examples directory from this repository with my own client id and redirect uri entered.

Thanks for your help!

@viestat
Copy link
Owner

viestat commented Dec 27, 2017

Hey @jordan-loeser ,
I have tried to reproduce this error but I have not encountered the same issue. I went through the initial config again and used the example app form /examples folder.

My redirect URL is something like this: someapp://callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants