I’m adding a custom action to include the user email in the access token claims. Adding data to claims works fine. But for some reason the email property in the action event is undefined. Could it be related to the fact that the user hasn’t verified their email address?
Solved-ish: When attaching the event.user as “user” to the claims, the full user data shows up correctly in the resulting access token. But when specifying individual properties such as user.email. The result does not show up in the token. I am unsure why this is, but I am able to work with this approach
Good to know you were able to find a valid workaround If you’d like to include the email claim directly with event.user.email in access tokens I believe adding the email scope to however you are kicking off the /authorize request should do the trick. In auth0-react for example this would be in the AuthorizationParams: