JoshLmao / Spotify4Unity

🎮🎵 Add the SpotifyAPI.NET library into Unity, enabling access to the Spotify Web API, allowing for control of Spotify and accessing the world of music
https://assetstore.unity.com/packages/tools/integration/spotify4unity-ui-tools-spotify-authorization-129028
MIT License
94 stars 8 forks source link

Implement implicit grant so that we don't have to authorize every 60 minutes? #31

Closed yosun closed 3 years ago

yosun commented 3 years ago

Feature Description: Insert your description here

Additional context If possible, add some context like how this feature can help what you're making

JoshLmao commented 3 years ago

Spotify recently implemented a new auth method called Authorization Code Flow with Proof Key for Code Exchange (PKCE) which allows users to auth once then we, as devs, can refresh that token whenever we like. I recently implemented this on another project of mine, Genify and have thought about coming back to this project to add it and fix all the other problems

LeviVisser commented 3 years ago

Are you still planning on updating this project? I am currently looking into a spotify integration for my upcomming iOS and Android app. Eventough I followed all iOS steps exactly, I still get the INVALID_CLIENT: Invalid redirect URI on authentication.

JoshLmao commented 3 years ago

Hi,

Sorry for the delay. The package is updated to v2.0 where it contains PKCE auth which allows for single auth from the user. Try it out since it's a complete rewrite, and it will fix the INVALID_CLIENT: Invalid redirect URI on authentication. issue :)