# useUser() in nextjs SDK is not giving the full user details for the user

**URL:** <https://community.auth0.com/t/useuser-in-nextjs-sdk-is-not-giving-the-full-user-details-for-the-user/195403>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [December 11, 2025, 6:27am UTC](https://community.auth0.com/t/useuser-in-nextjs-sdk-is-not-giving-the-full-user-details-for-the-user/195403 "2025-12-11T06:27:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [December 11, 2025, 3:49pm UTC](https://community.auth0.com/t/useuser-in-nextjs-sdk-is-not-giving-the-full-user-details-for-the-user/195403/3 "2025-12-11T15:49:53Z")

</div>

Hi @chaitrk

Welcome back to the Auth0 Community!

In the case of the NextJS SDK, the client must be configured to save the additional claims added to the token otherwise they will be filtered out since they are not part of the default claims. You can read more about that in our [documentation](https://github.com/auth0/nextjs-auth0/blob/main/EXAMPLES.md#beforesessionsaved) and this small [tutorial](https://community.auth0.com/t/an-introduction-to-custom-claims/191589) I have made on our DevHub forum.  
You will need to add the following piece of code to your application in order for any added custom claims to be included.

```auto
import { Auth0Client } from "@auth0/nextjs-auth0/server";

export const auth0 = new Auth0Client({
  async beforeSessionSaved(session, idToken) {
    return session;
  }
});

```

Let me know if that does the trick.

Kind Regards,  
Nik

---

_[View the full topic](https://community.auth0.com/t/useuser-in-nextjs-sdk-is-not-giving-the-full-user-details-for-the-user/195403)._
