My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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