I\'m trying to add custom claims to the logging in user principal using the OnTokenValidated event. To get these claims I need to fetch data from the database.
The event