-
Notifications
You must be signed in to change notification settings - Fork 56
Does this library handle Spotify Auth #5
Comments
I think this should be possible. The module is using a redirect_uri of
|
I have added that in as the redirect uri but it looks like spotify is still getting 400 errors coming from the authentication popup |
I gave it a try as well and got a 500 error either on the login page or on the following confirmation page. The problem is that expect for a general "server error" message the error contains nothing of value to find the reason and I have no idea if its the way the module makes the calls or the issue is on their end. |
Hi people. Did you ever get this working? |
@mawie81, @ChrisWoollon So I figured out what was going on (at least I think) if this thread is still active. When you get your callback from the authorization token, it bugs out because the new browser window is listening for the code. Since Spotify is so heavily involved with Facebook, it's grabbing the code from the facebook callback and using that to authenticate with Spotify. What will need to get changed is in the index.js file, there's this:
could be changed to:
Maybe use the callback_url setting. You will have to concat the protocol up front or remove it to do the check but that way if you are in a double oauth bind like logging into spotify through facebook it doesn't grab the intermediate auth code and throw an error. Let me know if this works! |
I have been playing around with this lib and took the code from the example in thee Readme. After adding all of the config, Im still getting a failure after logging in with spotify login window.
The error is
The text was updated successfully, but these errors were encountered: