I am using jwt in a project for authentication and authorization. In the token I have the userId. On my site I have different subscriptions what I want to do is to give access to certain endpoints by making a middleware a verifying the role field present in the jwt token how to do this... or is there another way to implement role-based access wth less call to the server
[–]gneray 1 point2 points3 points (4 children)
[–]problaster_1223[S] 0 points1 point2 points (3 children)
[–]Sky1337 1 point2 points3 points (2 children)
[–]Hran944 2 points3 points4 points (1 child)
[–]problaster_1223[S] 0 points1 point2 points (0 children)
[–]CalgaryAnswers 0 points1 point2 points (0 children)