Skip to content

DEV authentication and routes

simonedegiacomi edited this page May 23, 2019 · 2 revisions

Authenticated routes

The authentication is based on the Google SignIn. In the Components/AppRouter.js you can see that while the library is loading a spinner is rendered instead of the actual router. Once the library has been loaded the router is rendered. Some of the routes are defined using the custom components PrivateRoute and NotLoggedInRoute. These Route will render the desidered component if the user can access it, otherwise they will render a Redirect component.

Nested routes

Nested routes are defined in the relative component folders. For example, routes relatives to the /projects path are defined in the Components/Project/Projects.js.