Auth0 Home Blog Docs

How to enrich an API JWT with additional User Data?

rules
email
claims
username
payload

#1

Hi I use an JWT ( responseType: ‘id_token token’, scope: ‘openid’) to identify my ReactJS Frontend against a REST API

Currently i only have the following claims in my payload:
iss, sub, aud, iat,exp,azp,scope

I would like to enrich the JWT with Username or Nickname as well as Email Adress and EmailVerification Flag.

How do I do it?
If found following article
https://auth0.com/docs/api-auth/tutorials/adoption/scope-custom-claims#custom-claims

But if I try to save the rule in the Admin Frontend I get “Forbidden” without any further explanation as error.


#2

Can you try to clean your browser’s cache or using a different browser altogether? If you’re using Chrome, do you see any errors in Developer Tools > Console?