# Intermittent 'Failed to load previous state' on @auth0-nextjs SDK on Login

**URL:** <https://community.auth0.com/t/intermittent-failed-to-load-previous-state-on-auth0-nextjs-sdk-on-login/89872>\
**Category:** Get Help\
**Tags:** nextjs\
**Created:** [September 1, 2022, 3:43pm UTC](https://community.auth0.com/t/intermittent-failed-to-load-previous-state-on-auth0-nextjs-sdk-on-login/89872 "2022-09-01T15:43:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 4, 2024, 7:26pm UTC](https://community.auth0.com/t/intermittent-failed-to-load-previous-state-on-auth0-nextjs-sdk-on-login/89872/4 "2024-12-04T19:26:25Z")

</div>

Hello @peterghdevwhite!

I found a [related article](https://community.auth0.com/t/failed-to-load-previous-state-for-first-time-sign-up/111037) with the same error.

TL;DR is that the login flow started directly with the `/login` endpoint instead of the `/authorize` endpoint which can cause the error. Please read through the other post and see if it is a similar fix.

I hope this helps!

Best,  
Alex

---

_[View the full topic](https://community.auth0.com/t/intermittent-failed-to-load-previous-state-on-auth0-nextjs-sdk-on-login/89872)._
