Currently I am using ABP version 2.9 (DonetCore, Angular, Mongo) project template.
I need to have a logic to redirect user to different path based on user ROLE.
What I see from the source [here], there is CurrentUser object but it doesn't have roles property.
export interface CurrentUser {
isAuthenticated: boolean;
id: string;
tenantId: string;
userName: string;
email: string;
}
Maybe there is a reason that 'Roles' has not been included to current user?
Is there any way to get the user-role using any service or state?
Also how to add Role as an extra filed to jwt token and get access to that from client side?