Beautiful.
And once we have the bar small sidebar as well as the big side bar in place.
We can start working on two pages.
We just need to come up with which page we want to work on.
And then we need to set up the functionality on the server as well as the frontend.
But before we can do that, there's one more thing that we need to take care of.
If you take a look at any of the pages in the application and if you open up the network, that which
you'll notice that we're sending requests.
Now what's more interesting here, what is in the request?
Now, what am I talking about?
Well, remember when we logged in, what do we do?
Well, we set up here the state correct, as well as the local storage.
And in there we place the user as well as the token, because if you remember, one of the big goals
of the application is to restrict access.
So that only the user who actually has the data going to have access to it can view the jobs, have
a job and change the profile.
And the way we restrict access on a server will check for the token.
And again, if we go to a network map and if we take a look at any of these requests, any of them,
which you'll notice here is the fact that with every request we are sending in the request letter of
this authorization one.
And in there we pass in a token.
Now, of course, we're a long ways from setting this up on the frontend, basically grabbing their
token and passing it with a request before we can do anything before we can set up the pages or any
of that stuff on the front.
And we actually need to set up to function on a server where we'll restrict access to certain resources.
And if the token is not present, we'll send back the our response.
And as a result, the user will be locked out.