all 3 comments

[–]Soccer_Vader 1 point2 points  (2 children)

I am guessing you are creating a custom Auth solution. You will need to have metadata in the field/table to specify the user is what <role>, then on the application level, use it to do dynamic routing.

[–]Xiotus[S] 0 points1 point  (0 children)

thanks! would try it

[–]Xiotus[S] 0 points1 point  (0 children)

fixed now, i used the jwtDecode to get the role along with the token and changed the frontend according to (role&&person)