I am developing a react app in which i need a user dashboard where user can view his tweets.and other tasks.
Steps which i have completed so far.
- authentication of users using rest api(node js,mongodb) is done.
- Login/sign up is completed
- Storing jwt token in browser storage.
My app components/pages are.
- Home(can be accessible by all users)
- About us(public can be access by all users)
- Dashboard(protected only accessible by registered user)
- Dashboard nested components like profile,search tweet etc.(protected )
Problems that i am facing.
- how jwt will use to access only my protected pages and also public pages
- how i make my dashboard navigation (nested navigation) .