1
00:00:00,300 --> 00:00:00,720
Beautiful.

2
00:00:01,020 --> 00:00:05,280
And once we have the bar small sidebar as well as the big side bar in place.

3
00:00:06,350 --> 00:00:07,860
We can start working on two pages.

4
00:00:08,390 --> 00:00:11,810
We just need to come up with which page we want to work on.

5
00:00:12,230 --> 00:00:17,300
And then we need to set up the functionality on the server as well as the frontend.

6
00:00:17,720 --> 00:00:22,100
But before we can do that, there's one more thing that we need to take care of.

7
00:00:22,760 --> 00:00:29,070
If you take a look at any of the pages in the application and if you open up the network, that which

8
00:00:29,090 --> 00:00:31,700
you'll notice that we're sending requests.

9
00:00:32,240 --> 00:00:35,570
Now what's more interesting here, what is in the request?

10
00:00:36,490 --> 00:00:37,570
Now, what am I talking about?

11
00:00:37,990 --> 00:00:40,450
Well, remember when we logged in, what do we do?

12
00:00:40,990 --> 00:00:46,420
Well, we set up here the state correct, as well as the local storage.

13
00:00:46,720 --> 00:00:53,050
And in there we place the user as well as the token, because if you remember, one of the big goals

14
00:00:53,050 --> 00:00:56,770
of the application is to restrict access.

15
00:00:57,800 --> 00:01:06,440
So that only the user who actually has the data going to have access to it can view the jobs, have

16
00:01:06,440 --> 00:01:08,540
a job and change the profile.

17
00:01:09,410 --> 00:01:14,750
And the way we restrict access on a server will check for the token.

18
00:01:15,560 --> 00:01:22,970
And again, if we go to a network map and if we take a look at any of these requests, any of them,

19
00:01:23,390 --> 00:01:31,760
which you'll notice here is the fact that with every request we are sending in the request letter of

20
00:01:31,760 --> 00:01:33,080
this authorization one.

21
00:01:33,440 --> 00:01:35,660
And in there we pass in a token.

22
00:01:36,080 --> 00:01:41,240
Now, of course, we're a long ways from setting this up on the frontend, basically grabbing their

23
00:01:41,240 --> 00:01:48,170
token and passing it with a request before we can do anything before we can set up the pages or any

24
00:01:48,170 --> 00:01:49,570
of that stuff on the front.

25
00:01:49,580 --> 00:01:57,620
And we actually need to set up to function on a server where we'll restrict access to certain resources.

26
00:01:57,920 --> 00:02:03,410
And if the token is not present, we'll send back the our response.

27
00:02:03,890 --> 00:02:07,640
And as a result, the user will be locked out.

