Store email on jwt on login


I have a scenario where a user can have many emails, stored in the user_metadata, in one account. Depending on which email is used will depend on what they can do in the application. Is there a way to write a custom to rule to store the email in the jwt when they login?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?