Sign in
Log inSign up

How should i implement React authorization inside authentication to protect the one component? any ideas

mahendher ma's photo
mahendher ma
·Aug 6, 2020·

1 min read

hi do u know how to implement authorization if the user is successfully logged In i had to keep restriction to one page (i.e one component page) to access that page he should know the admin Login and password . so, basically need to implement authorization for that one page

like

after the successful login if the user wants to access one of the posts page (localhost:3000/posts) the page should be blocked and only admins can access to that page