Auth0 Home Blog Docs

Native login flow still supported on mobile or only browser based?

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: https://github.com/auth0/react-native-auth0#login-with-password-realm-grant

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.