# Failed to load Previous state for first time sign up

**URL:** <https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [July 11, 2023, 6:17pm UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037 "2023-07-11T18:17:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![osama](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@osama](https://community.auth0.com/u/osama)\
**Post date:** [July 11, 2023, 6:17pm UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037/1 "2023-07-11T18:17:12Z")

</div>

Whenever a new user tries to sign up with our app, for the first time an error is shown. I’ve aatached two screenshots which users see.

 ![WhatsApp Image 2023-07-11 at 7.12.29 PM (1)](https://global.discourse-cdn.com/auth0/original/3X/5/5/5582dc0c87c4421b6491c29c2ef9b0bb06be6767.jpeg)  
 ![WhatsApp Image 2023-07-11 at 7.12.29 PM](https://global.discourse-cdn.com/auth0/original/3X/0/5/055163659937cebc565b965309de5e2a205493d9.jpeg)

I can see a tracking id but I don’t know how to debug using that. When the user comes back to sing in, then it works fine. I don’t know what wrong here. I’ve integrated auth0 with AWS Cognito and I’m using sign in with LinkedIn

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 13, 2023, 1:17am UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037/3 "2023-07-13T01:17:39Z")

</div>

Hi @osama,

Welcome to the Auth0 Community!

Based on your screenshots, I was able to correspond the “Failed to load previous state” error to an event found in your tenant logs. It seems that what happened was that the user attempted to access the login page directly instead of starting the login flow from the beginning (/authorize).  
And by not doing so, this caused the state error.

The error description in your logs also states the following:

> A user has attempted to access a login page directly. This is not supported unless a “Application Login URI” is set for your application, or a “Tenant Login URI” is set for your tenant. For more information, see: [Configure Default Login Routes](https://auth0.com/docs/universal-login/default-login-url)

Seeing that, you should be able to fix this error by configuring your default login routes on either the application or tenant level.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![osama](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@osama](https://community.auth0.com/u/osama)\
**Post date:** [July 13, 2023, 9:19am UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037/4 "2023-07-13T09:19:37Z")

</div>

Hi @rueben.tiow ,

Thanks for your reply.

We only have a mobile (React native based) client for this app and I don’t think we can create and https based login page using the react native app. Any thoughts on this?  
Also, I’m not sure how the user attempts to access the login page directly instead of starting from the beginning. We’ve set this configuration inside our react native app:

```auto
 issuer: 'Alfred LinkedIn Login',
      clientId: 'id',
      clientSecret: 'secret',
      redirectUrl: 'appName://redirect',
      scopes: ['email', 'openid'],
      additionalParameters: {
        identity_provider: 'Provider-name',
      },
      serviceConfiguration: {
        authorizationEndpoint:
          'https://domain/oauth2/authorize',
        tokenEndpoint: 'https://domain/token',
        revocationEndpoint: 'https://domain/oauth2/revoke',
      },
      clientAuthMethod: 'post',

```

---

<div class="post-metadata">

**Author:** ![osama](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@osama](https://community.auth0.com/u/osama)\
**Post date:** [July 17, 2023, 1:45pm UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037/5 "2023-07-17T13:45:23Z")

</div>

Hi @rueben.tiow Is there a way I can access those logs?

---

<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:** [July 31, 2023, 1:45pm UTC](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037/6 "2023-07-31T13:45:24Z")

</div>

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