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

**URL:** <https://community.auth0.com/t/native-login-flow-still-supported-on-mobile-or-only-browser-based/21233>\
**Category:** Get Help\
**Created:** [February 12, 2019, 3:42pm UTC](https://community.auth0.com/t/native-login-flow-still-supported-on-mobile-or-only-browser-based/21233 "2019-02-12T15:42:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev17](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dev17/32/11008_2.png) [@dev17](https://community.auth0.com/u/dev17)\
**Post date:** [February 12, 2019, 3:42pm UTC](https://community.auth0.com/t/native-login-flow-still-supported-on-mobile-or-only-browser-based/21233/1 "2019-02-12T15:42:59Z")

</div>

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?

[https://auth0.com/docs/design/browser-based-vs-native-experience-on-mobile](https://auth0.com/docs/design/browser-based-vs-native-experience-on-mobile)

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [February 16, 2019, 6:56pm UTC](https://community.auth0.com/t/native-login-flow-still-supported-on-mobile-or-only-browser-based/21233/2 "2019-02-16T18:56:27Z")

</div>

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

```plaintext
auth0
    .auth
    .passwordRealm({username: "info@auth0.com", password: "password", realm: "myconnection"})
    .then(result => console.log(result))
    .catch(err => console.error(err));

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 29, 2019, 11:01am UTC](https://community.auth0.com/t/native-login-flow-still-supported-on-mobile-or-only-browser-based/21233/3 "2019-08-29T11:01:29Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
