Open murray-lang opened 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.
I'm new to both Spotify development and React Native development, so please forgive me if I betray too much lack of understanding.
redirectOrVerifyToken()
, particularly the line:const hashParams = new URLSearchParams(window.location.search);
...but I believe it's expected thatlocation
is undefined in the window object of a React Native application.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?