How to update claim identity received in asp.net core application

You can add custom claims to the token in an Login Flow.