ngx-spotify-api / core

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

Change Token on runtime and connect manuel not on start? #1

Open Newan opened 5 years ago

Newan commented 5 years ago

Is your feature request related to a problem? Please describe. Is it possible to set the spotify api key on runtime? The spotify api key change sometimes. It is not the best solution to compile everything only to change the key in the ModuleConfig? Or I have two Spotify connection and will connect manuell to spotify, not on startup

Describe the solution you'd like Somthing like this:

changeToken(token:string) { this.ngxSpotifyApiConfiguration.setToken(token); } And then every api call runs with the new token?

jlandsmann commented 4 years ago

That's a nice idea. I will check it.