ngx-spotify-api / core

angular 7 module for interacting with spotify-api
MIT License
3 stars 0 forks source link

How to connect to Spotify account #4

Open rcsilva83 opened 4 years ago

rcsilva83 commented 4 years ago

Hi,

Sorry if it's lame question but it's not clear to me how to make my app connect to the user's Spotify account. On the module config I'm supposed to provide an access token instead of my app's "Client ID" and "Client Secret".

Regards,

Rodrigo

jlandsmann commented 4 years ago

First of all, sorry for the late response.

You can't provide "Client ID" and "Client Secret" because the docs from Spotiy (https://developer.spotify.com/documentation/general/guides/authorization-guide/) recommend to not save that information on a client. Therefore you would need to save your Secrets on a server application.

That's the reason why I use the authorization method "Implicit Grant". The process is also described on the page linked above.