spotify / web-api-examples

Basic examples to authenticate and fetch data using the Spotify Web API
Apache License 2.0
1.99k stars 1.67k forks source link

PKCE vs non-PKCE authorization flow and refresh token limitations #98

Open MeditoDiTerra opened 1 year ago

MeditoDiTerra commented 1 year ago

Hello,

I'd like to know, if deliberately not using PKCE in a mobile app intended for public release is still ok?

I have successfully implemented both methods, was fully committed to go for PKCE until I found out the refresh token can only be used once, after which the whole authorization process has to be repeated.

Non-PKCE auth flow, on the other hand, does not suffer from this limitation. I assume the PKCE requirement is for added security, but from the UX perspective, I definitely prefer not to bother users with constant authorization requests.