FayeOriginal post
Rank 6: Server
Hello.
I need some help on how to properly implement the oauth feature into my login view.
I am getting a link to my api url, and I can login into discord, but when it asks me to open an "external app" (ios), it doesn't do anything.
This is my code for logging in:
TypeScript
const handleOAuth2Login = (provider: OAuthProvider) => { try { const data = account.createOAuth2Session(provider) return Linking.openURL(`${data}`) } catch (error) { console.log(error) } }Summary
Developers are having trouble implementing OAuth into their React Native login view. When prompting to open an "external app" (iOS), nothing happens. The code provided seems correct, but there might be an issue with the Linking module in React Native. Check Linking documentation and ensure proper configurations for handling external app opening are in place.