Concerning the claims that can be added to an OpenId token such as user’s address and phone_number in your case, the rule of thumb is to put them within the user_metadata section or the app_metadata.
The reason is that these “additional” claims are considered as custom claims and these ones can collide with the existing default claims which are at the root level.
Maybe your error is coming from the fact that the set of default existing claims cannot be extended.
What I’m doing about the claims I want to add to an OpenID token is to put them in:
- user_metadata for the claims which can be modified by the user such as phone number, preferred social media, etc.
- app_metadata for the claims which cannot be modified by the user such as the user group and so on.
You should give a try to this solution to see if this one suits your needs.