googlearchive / drive-music-player

Fully client side Music Player for Google Drive
http://www.driveplayer.com
Apache License 2.0
574 stars 211 forks source link

Updated to use GSI v2 (gapi.auth2) #195

Closed TMSCH closed 6 years ago

TMSCH commented 7 years ago

GSI v2 doesn't allow to pass a state parameter as the redirect flow is handled securely by the client library. Therefore the fileIds cannot be preserved after a redirect.

We could use localStorage to achieve the same effect. However, I wanted to get something working with auth2 to show how simple it is actually to migrate as the library handles a lot more than GSI v1, and not update too much the code unrelated to auth.

TMSCH commented 6 years ago

@nicolasgarnier it's working now! Could you merge?