Auth0 Home Blog Docs

Overwrite or set standard claim in rule



The documentation indicates that custom claims (set in rules) need to have a http* prefix in order to be included in the final token(s).
Does that imply that there is no way to set a standard claim (e.g. given_name, tid, appid, locale) within a rule?
We would prefer to use standardized claims for the use-cases where it makes sense and and avoid cluttering the token and increasing its size.


I want to use postgrest which assumes a claim called role


I completely agree. It seems strange, and somewhat counter-intuitive, to have to prefix standard claims.


I have to override the sub since the | special char is not allowed for the vendor. Is there any way I can do it?