qreate/spotify-playback-flutter

Use existing access token for spotify

lvinci opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
If the user already had to authenticate with spotify to use the app, he should not have to do that again for spotify playback.

Describe the solution you'd like
A constructor exists where you can supply a valid access token, to use the dependency

Describe alternatives you've considered
Right now I am using spotify connect via the spotify rest api, allthough the playback is happening on the same device, because I already have a spotify access token because i need that for other functionality in my app.

Additional context
I am developing an app which is integrated with spotify and thus I always already have a valid access token of the current user in the app. Thus, I want to be able to use that token, without the
need to re authenticate.

If I am missing something here, like an access token is not enough for playback or something else, I apologize.

Thank you for your time and help!

I think I missed, that the spotifyConnect method does not mean that the user has to re enter his login info. I will try to use this dependency, and if it doesnt work, then I will open an issue. I will close this for now