Using custom claim to get subscription id of customer

using custom claim to get subscription id of customer from app meta data but if a user is logged in and subscription id of customer gets updated changes are not reflected immediately the user have to relogin how to fix this?

Hi @pandeysumit832

To get updated data, you have to get a new access token. Access tokens are designed to be able to be validated without contacting the issuer, so there is no way to know if the data has been updated.

If your use case requires this, the access token probably isn’t the place to store that data. Instead, store a user ID and create an API to get the customer info, including subscription ID.


1 Like

i am also facing issues regarding user-profile when i update the user profile it doesn’t get updated immediately

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