spotify / spotify-web-api-ts-sdk

A Typescript SDK for the Spotify Web API with types for returned data.
Other
376 stars 76 forks source link

spotify-web-api-ts-sdk AuthorizationCodeWithPKCEStrategy broken on React Native #98

Open murray-lang opened 10 months ago

murray-lang commented 10 months ago

I'm new to both Spotify development and React Native development, so please forgive me if I betray too much lack of understanding.

So it looks to me that this code was not written with React Native in mind, and will never work. Is this code wrong or am I wrong? Is it my error to expect AuthorizationCodeWithPKCEStrategy to be relevant to React Native?

murray-lang commented 10 months ago

It looks like I'll need to write an implementation of IAuthStrategy based on an expo AuthSession. I'm trying this based on: https://medium.com/@zachrach/spotify-web-api-authorization-with-react-native-expo-6ee1a290b2b0 ...though I'm not happy with the handling of the client secret. I'll worry about that later.