lufinkey/react-native-spotify

Log in flow through Safari instead WebView

iamraffe opened this issue · 2 comments

Hi there,

Would it be possible for the login flow to take place with Safari instead of with UIWebView?

I am able to open the URL with Safari, but not sure how to handle the process back once the user has logged in in Safari.

Thanks!

You can use the Linking api to listen for the redirect URL and then use loginWithSession to login with the data manually. I won't officially support safari login though because it'd be more work to maintain.

Makes sense. Thanks for the idea! I'll try that tomorrow