zmb3 / spotify

A Go wrapper for the Spotify Web API
Apache License 2.0
1.34k stars 284 forks source link

Token Swap Support? #136

Open Beeze opened 3 years ago

Beeze commented 3 years ago

https://developer.spotify.com/documentation/ios/guides/token-swap-and-refresh/

zmb3 commented 3 years ago

What is the question or feature request? That looks like a feature of the iOS SDK to me.

Beeze commented 3 years ago

feature request if the functionality doesn't already exist. Looks like the flow is:

  1. client starts an auth request that takes a server side endpoint as a redirectUri
  2. server receives the token.
  3. server handles token, and forwards token to client redirect uri.

Here's the ruby token swap handler they wrote https://github.com/spotify/ios-sdk/blob/25971e23565ddad7b9049ac182d3edbc17bb336f/DemoProjects/spotify_token_swap.rb

Beeze commented 3 years ago

more info here: https://github.com/spotify/ios-sdk/blob/99f3adc5254ffad2225bcdc9cb4744199c2ae666/docs/auth.md