# Get user meta as part of session token

**URL:** <https://community.auth0.com/t/get-user-meta-as-part-of-session-token/182262>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [February 16, 2025, 11:39pm UTC](https://community.auth0.com/t/get-user-meta-as-part-of-session-token/182262 "2025-02-16T23:39:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [February 17, 2025, 9:43pm UTC](https://community.auth0.com/t/get-user-meta-as-part-of-session-token/182262/3 "2025-02-17T21:43:12Z")

</div>

Hi @chris.alwin,

Welcome to the Auth0 Community and thank you for your post!

You are able to pass more information about a user such as **user\_metadata** to your application by using [Custom Claims](https://auth0.com/docs/secure/tokens/json-web-tokens/create-custom-claims) in order to add more fields to the token. This can be achieved with a Post-Login Action, as mentioned [here](https://auth0.com/docs/manage-users/user-accounts/metadata), in our documentation about metadata.

An example would be as mentioned below:

```auto
const namespace = 'https://my-app.example.com';
    api.idToken.setCustomClaim(`${namespace}/user_metadata`, event.user.user_metadata);

```

You can also check this [community post](https://community.auth0.com/t/how-to-get-user-meta-from-userinfo-endpoint/106000), which references this [Knowledge Article](https://community.auth0.com/t/how-to-get-user-meta-from-userinfo-endpoint/106000) about **Adding custom claims to tokens**.

Additionally you might also be interested in having a look over the [Authorization Extension](https://auth0.com/docs/customize/extensions/authorization-extension).

I hope this helped.  
Best regards,  
Remus

---

_[View the full topic](https://community.auth0.com/t/get-user-meta-as-part-of-session-token/182262)._
