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:
- clone this repo or download zip
- go to root project directory
- in the command line / bash:
npm install
- got to Spotify Developer console https://developer.spotify.com/
- create an app
- get the client id
- replace
YOUR_CLIENT_ID
injs/index.js
file with your client id - in the command line / bash:
npm start
- go to browser http://localhost:3001/