An example to show how connect popups talk to each other when receiving token, this example uses Spotify Web API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
.gitignore
README.md
callback_spotify.html
index.html
package.json
server.js

README.md

spotify-connect-popup-example

An example to show how connect popups talk to each other when receiving token, this example uses Spotify Web API

Blog post with explanations: http://www.dimagimburg.com/authentication-and-login-popup-window-handling-for-social-medias-code-example/

install:

  1. clone this repo or download zip
  2. go to root project directory
  3. in the command line / bash: npm install
  4. got to Spotify Developer console https://developer.spotify.com/
  5. create an app
  6. get the client id
  7. replace YOUR_CLIENT_ID in js/index.js file with your client id
  8. in the command line / bash: npm start
  9. go to browser http://localhost:3001/