# Having 'auth0.webAuth..." go to next screen immediately on credentials returned

**URL:** <https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538>\
**Category:** Get Help\
**Tags:** webauth, api\
**Created:** [February 20, 2018, 3:33am UTC](https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538 "2018-02-20T03:33:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![my\_biz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/my_biz/32/7580_2.png) [@my\_biz](https://community.auth0.com/u/my_biz)\
**Post date:** [February 20, 2018, 3:33am UTC](https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538/1 "2018-02-20T03:33:58Z")

</div>

Hello,

We are developing a React Native Android/iOS app for a client, using your Auth0 API.  
We are using your Auth0 `auth0.webAuth...` Our issue is, once the credentials have been returned, we want it to go from your Web Auth0 screen to the next Home page screen, which is how we have it in our code for returning the JWToken credentials.

Instead, however, when the credentials are returned, it goes back to the “Sign Up or Login” screen for about a half a second, then it finally goes to the Home screen we wanted it to go after your Auth0 Web login screen. You can see this in this Gif, here —

![Login in movie gif with Auth0 webAuth screens](https://www.dropbox.com/s/xsn1nfpsutes5le/ueb_ios_auth0_web_login.gif)

If the above GIF does not show up, go to: [Dropbox - Error - Simplify your life](https://www.dropbox.com/s/xsn1nfpsutes5le/ueb_ios_auth0_web_login.gif)

Here is the code we’re doing to make this happen in this section —

```
  _onPress = () => {
    auth0.webAuth
      .authorize({
        scope: 'openid profile',
        audience: `https://${Auth0Credentials.domain}/userinfo`
      })
      .then(credentials => {
        this.props.navigation.navigate('Home')
        this.setState({ accessToken: credentials.accessToken })
      })
      .catch(error => console.log(error))
  }

```

…So is there anything we could be doing differently to make this happen so we do not see the previous “Sign Up or Login” screen, but it goes straight to the Home screen? Please let us know and thank you in advance for any help with this.

best,

— faddah wolf

```
 portland, oregon, u.s.a.

```

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 21, 2018, 3:45pm UTC](https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538/2 "2018-02-21T15:45:24Z")

</div>

To my best knowledge, there is no way to go straight to the next screen, since after authenticating with Auth0 your app will receive the [callback] ([Auth0 React Native SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/react-native/00-login#configure-callback-urls)) which opens the screen that was open before authentication and carries on with the `.then(credentials => { ... }` block.

---

<div class="post-metadata">

**Author:** ![my\_biz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/my_biz/32/7580_2.png) [@my\_biz](https://community.auth0.com/u/my_biz)\
**Post date:** [February 22, 2018, 8:01am UTC](https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538/3 "2018-02-22T08:01:02Z")

</div>

Ok, thank you then. Understood.  
best,  
— faddah wolf

```
 portland, oregon, u.s.a.

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 10:16am UTC](https://community.auth0.com/t/having-auth0-webauth-go-to-next-screen-immediately-on-credentials-returned/9538/4 "2019-07-25T10:16:36Z")

</div>


