# Next.js lose useUser() data after refresh a page which contains data of user

**URL:** <https://community.auth0.com/t/next-js-lose-useuser-data-after-refresh-a-page-which-contains-data-of-user/90324>\
**Category:** Get Help\
**Tags:** user, nextjs, login, auth0\
**Created:** [September 9, 2022, 2:29pm UTC](https://community.auth0.com/t/next-js-lose-useuser-data-after-refresh-a-page-which-contains-data-of-user/90324 "2022-09-09T14:29:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 11, 2024, 9:35pm UTC](https://community.auth0.com/t/next-js-lose-useuser-data-after-refresh-a-page-which-contains-data-of-user/90324/3 "2024-12-11T21:35:22Z")

</div>

Hey @njudev!

I noticed in the post you mentioned you lost the session when you refreshed the page. I found an article which can help troubleshoot this issue.

[https://community.auth0.com/t/why-is-authentication-lost-after-refreshing-my-single-page-application/56276](https://community.auth0.com/t/why-is-authentication-lost-after-refreshing-my-single-page-application/56276)

Please give this a read and see if this fixes the issue!

Best,  
Alex

---

_[View the full topic](https://community.auth0.com/t/next-js-lose-useuser-data-after-refresh-a-page-which-contains-data-of-user/90324)._
