is it still possible to create a native sign up/in flow for mobile using react native or are you forced to user the out-of-the-box brower based flow?
While not recommended (because of the reasons outlined in the article you linked), it is possible to offer a native login experience using the “Resource Owner Password Grant”, i.e. the application directly collecting the credentials of the user (username/password) and exchanging them directly for a token at the /oauth/token
endpoint.
In the Auth0 React Native SDK you can use the method described here: GitHub - auth0/react-native-auth0: React Native toolkit for Auth0 API
auth0
.auth
.passwordRealm({username: "info@auth0.com", password: "password", realm: "myconnection"})
.then(result => console.log(result))
.catch(err => console.error(err));
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.