brim-borium / spotify_sdk

Flutter Package to connect the spotify sdk
https://pub.dev/packages/spotify_sdk
Apache License 2.0
153 stars 82 forks source link

Spotify changed the redirect URL callback to #access_token and now the athentication is failling #158

Closed vikrantyadav7 closed 2 years ago

vikrantyadav7 commented 2 years ago

Is this a how to question? No

Is this a native Spotify SDK issue No

Are you using a Free or Premium Spotify account Premium

Are you aware of the limitation of Free Spotify accounts Yes

Describe the bug The getAthenticationToken function is not working . And i think the thats because Spotify has changed its redirect url . when i call the url generated by this function it returns the access token in the URL but its been changed to #access_token instead of #accessToken

Spotify_sdk Flutter package version spotify_sdk: ^2.2.0

Target Platform, Version & Device

Development OS

brim-borium commented 2 years ago

Hi @vikrantyadav7 I don't quite understand the issue yet. getAuthenticationToken does return the accessToken and not a url. Also the redirect URL has to be added from your side and nothing Spotify does. And where exactly did accessToken change to access_token?

brim-borium commented 2 years ago

image

tested with the current main branch and the following parameters and i got a working token back

brim-borium commented 2 years ago

Which function does generate this link for you? And are you using the redirect uri you posted when you call getAuthenticationToken() ?

vikrantyadav7 commented 2 years ago

spotifysdk.getauthenticationToken() and yes