Monday, 17 August 2020

What is the best way to implement user roles for authorization?

if a user can have three roles ['user', 'creater', 'admin']. how can i limit the user from seeing the content or clicking a delete button? Is postportjs is the correct module??i used to jwt to store user id in payload and its been working but i can only send jwt token with postman. Is there any way to store jwt token in frontend with just html,js.

Submitted August 18, 2020 at 02:05AM by Mr_Direwolf

No comments:

Post a Comment