witnessmenow / spotify-api-arduino

Arduino library for integrating with the Spotify Web-API (Does not play music)
MIT License
178 stars 33 forks source link

Make client_id optional #52

Closed hansmbakker closed 4 weeks ago

hansmbakker commented 1 year ago

PR for #51 - @witnessmenow this is still work in progress. I still need to remove code duplication in requestAccessTokensDeviceFlow for example

Are you opiniated about code styling? I noticed the prettier plugin formatted the code - if you have another formatting I should follow, please let me know.

witnessmenow commented 1 year ago

The device flow method seems to be aspirational still @hansmbakker is it? Just judging by your link in #51

https://community.spotify.com/t5/Spotify-for-Developers/Device-Authorization-Grant-authentication-flow-for-custom/m-p/5485468#M7570

It seems like it's not something that is available yet, am I wrong?

It does seem like the PKCE method might be possible, and SHA encoding is probably requires device specific code, so maybe only available on ESP32 for example, but I'd imagine that satisfies the majority of users