Universal React Redux Registration
  • Getting Started
  • Backend Project architecture
  • Frontend Project architecture
  • Clone the repository
  • Set-up the Backend
  • Set-up the Frontend
  • JSON Web Tokens
  • Server & Client Bundles
  • Unit tests
  • Create new pages
  • Restrict Access (Authenticated Users Only)
  • Redux-Form
  • Custom Layouts
  • Custom Page titles and SEO
  • SCSS
  • Fonts & Font Icons
  • Images
Powered by GitBook
On this page

Restrict Access (Authenticated Users Only)

Please follow the instructions below to restrict access to routes

Open: 'Frontend/src/client/routes/index.js' and find a route you wish to restrict access too.

{
    path: '/example',
    ...Auth,
    routes: [
        {
            ...ExampleComponent,
            restricted: true <<-- Add this
        }
    ]
}

Simply add 'restricted: true' to the routes array object.

PreviousCreate new pagesNextRedux-Form

Last updated 6 years ago