Auth0 accept updates to custom access tokens with rules during a free trial?

I create a rule to include unique clams in access tokens. However, I am unable to see any custom clams in the access token. The same code runs flawlessly in the professional version, but the access token does not update for returning users in the free version.

Is it possible to update personalised clams for free trail?


Hi @nareshchebrolu,

Welcome to the Auth0 Community!

You should be able to set custom claims to your access tokens with Rules using a free trail subscription.

After looking closely at your screenshot, it looks like the code is missing a custom namespace when setting a custom claim to the your access tokens. See below for an example code snippet to append custom claims to an Access or ID token.

function(user, context, callback) {
  // add custom claims to Access Token and ID Token
  context.accessToken['http://foo/bar'] = 'value';
  context.idToken['http://fiz/baz'] = 'some other value';
  // change scope
  context.accessToken.scope = ['array', 'of', 'strings'];
  callback(null, user, context);

(Reference: Sample use cases - Customize tokens)

Please let me know if you have any questions.


Okay, but when I use the same code in the Piad version, I get the correct access token.

Hi @dev.nareshch,

Thank you for your response.

Could you please send me a direct message of your free and paid tenant names so that I can investigate if there’s anything causing a difference in behavior with your Rule scripts?

In the meantime, could you please try the example script I shared above with both of your tenants and check if the tokens are appending the custom claims?

I look forward to your reply.


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