# Updating Custom Claims After Login Event

**URL:** <https://community.auth0.com/t/updating-custom-claims-after-login-event/148515>\
**Category:** Get Help\
**Tags:** extensibility, actions-extensibility\
**Created:** [October 3, 2024, 3:12pm UTC](https://community.auth0.com/t/updating-custom-claims-after-login-event/148515 "2024-10-03T15:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baynezy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/baynezy/32/49885_2.png) [@baynezy](https://community.auth0.com/u/baynezy)\
**Post date:** [October 3, 2024, 3:12pm UTC](https://community.auth0.com/t/updating-custom-claims-after-login-event/148515/1 "2024-10-03T15:12:59Z")

</div>

I have used Actions with the post-login trigger to add a custom claim to my ID Token. This makes a call to an API of mine and based on that the claims are added. This work very well.

These claims relate the subscription status of a user. There is a cut over point when a user subscribes where these claims become stale. I was hoping that calling the /userinfo endpoint that is part of the OIDC specification would return accurate data, but that appears to be cached also. As I get stale data from that endpoint as well.

What is the best way to resolve this with Auth0?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 3, 2024, 8:32pm UTC](https://community.auth0.com/t/updating-custom-claims-after-login-event/148515/3 "2024-10-03T20:32:23Z")

</div>

Hi @baynezy,

You could use [Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication) to re-authenticate the user without user interaction. Essentially, this would get a new access token with the updated claims.

Thanks,  
Rueben

---

<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:** [October 17, 2024, 8:32pm UTC](https://community.auth0.com/t/updating-custom-claims-after-login-event/148515/4 "2024-10-17T20:32:29Z")

</div>

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