I am using AWS Cognito User Pool to secure my web app, mobile app and APIs. I have a database with roles and permissions defined. I would like to add "roles" to Access Token during login process so that I do not need to make a database call to check for user roles.
I will not be able to use Cognito custom attributes because people can create custom roles from the front end and all of this information is saved in a database.