# Customs claims are lost after refresh token

**URL:** <https://community.auth0.com/t/customs-claims-are-lost-after-refresh-token/98791>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [January 24, 2023, 9:34am UTC](https://community.auth0.com/t/customs-claims-are-lost-after-refresh-token/98791 "2023-01-24T09:34:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tibo/32/42928_2.png) [@tibo](https://community.auth0.com/u/tibo)\
**Post date:** [January 24, 2023, 9:34am UTC](https://community.auth0.com/t/customs-claims-are-lost-after-refresh-token/98791/1 "2023-01-24T09:34:14Z")

</div>

Hi,  
I have an application where users can belong to several companies. For each company a user can have different permission.  
I use post login action to redirect user to a page with the liste of user’s companies, user choose a company then during onContinuePostLogin , we enrich access token with companyId and permissions. It works, my problem is when refresh token happen, all my custom claim are lost.  
I could store/retrieve from metada or a custom DB but not ideal IMO.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 28, 2023, 1:21pm UTC](https://community.auth0.com/t/customs-claims-are-lost-after-refresh-token/98791/3 "2023-03-28T13:21:22Z")

</div>

Hi @tibo,

Welcome to the Auth0 Community!

Apologies for the delayed response. Are you still seeing this issue?

---

<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:** [June 22, 2023, 6:39pm UTC](https://community.auth0.com/t/customs-claims-are-lost-after-refresh-token/98791/4 "2023-06-22T18:39:22Z")

</div>

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