title: LibSpotify login with oAuth Token
body: <p>I built a web app that (among other things) provides access to your Spotify library. For that I am already obtaining a <a href="https://developer.spotify.com/web-api/authorization-guide/" rel="nofollow noreferrer">Spotify oAuth token</a> which works fine with their <a href="https://developer.spotify.com/web-api/" rel="nofollow noreferrer">Web API</a>.</p>
  
  <p>My app will also allow you to stream your music to another device while controlling it from the web (or phone). For that I am sending the (encrypted) oAuth token to that device which will then use libSpotify to play that song.</p>
  
  <p>Unfortunately, from what I can see, libSpotify can't authenticate with the oAuth token and <a href="https://developer.spotify.com/docs/libspotify/12.1.45/group__session.html#ga4533a992a120cacb109c892a852afe2a" rel="nofollow noreferrer">requires the plain text password instead</a>? That would force me to additionally ask for the user's password (bad UX) and probably even store it myself (bad idea in general).</p>
  
  <p>@Spotify is there a plan to change that and add support for login via oAuth token in libSpotify? Any other way to avoid asking for both, oAuth and plain text password from the user? The Android SDK accepts the oAuth token for playback.</p>
  
  <p>P.S. I am aware of a <a href="https://stackoverflow.com/questions/9528982/does-libspotify-support-oauth">similar question</a>, but it is about the Facebook OAuth token and also quite old by now.</p>