1
00:00:00,390 --> 00:00:07,070
All right, and before we complete our register controller, I also want to set up these two hours of

2
00:00:07,080 --> 00:00:13,170
the JWT secret on as well as JWT a lifetime in the north area.

3
00:00:13,830 --> 00:00:20,580
And then we'll swing back to our create JWT and use those values instead.

4
00:00:21,030 --> 00:00:26,700
So the first thing that we want to do is navigate to data entry and then we want to create those variables.

5
00:00:27,060 --> 00:00:28,230
And as a side note.

6
00:00:29,210 --> 00:00:38,930
For my daughter, envy, I use this extension, so there a dot in V expansion of I just nicely supports

7
00:00:38,930 --> 00:00:40,000
the Fox syntax.

8
00:00:40,240 --> 00:00:46,370
That's why my variables are different color than the value, just as a side note.

9
00:00:46,820 --> 00:00:51,810
So like I said, we're going to go here with the British secret and in a second, I'll show you where

10
00:00:51,810 --> 00:00:58,470
we can grab nice values and also do the same thing here with JWT and Lifetime.

11
00:00:58,820 --> 00:01:01,880
And for the left time on right away from the get go.

12
00:01:02,120 --> 00:01:04,099
I'll set it equal to one.

13
00:01:04,760 --> 00:01:12,950
Now, when it comes to JWT secret, I actually prefer recite the all keys generator.

14
00:01:13,340 --> 00:01:14,510
So we have a link over here.

15
00:01:15,510 --> 00:01:21,150
You can nicely navigate you're looking here for 256 encryption key.

16
00:01:21,690 --> 00:01:23,730
So come here if you want, you can donate.

17
00:01:24,000 --> 00:01:25,500
You're looking for encryption key.

18
00:01:25,770 --> 00:01:30,090
256 and then just grab whatever value you want.

19
00:01:30,100 --> 00:01:32,960
So as you keep talking, all generates new keys.

20
00:01:32,960 --> 00:01:35,450
So I think I'm going to go with this one than once.

21
00:01:35,460 --> 00:01:37,170
Navigate back to our server.

22
00:01:37,590 --> 00:01:40,800
We're looking for dot and re copy and paste.

23
00:01:41,250 --> 00:01:49,500
And then before we start the server, we also want to go to user and in credibility.

24
00:01:49,860 --> 00:01:58,000
Like I said, we're going to go with process, process, data entry and then we're looking for JWT and

25
00:01:58,000 --> 00:01:58,710
non secret.

26
00:01:59,690 --> 00:02:05,390
Now, what we also want to access is that one day, so instead of hard quoting here, can go with process

27
00:02:05,720 --> 00:02:10,910
data entry and then JWT underscore and learn a lifetime.

28
00:02:11,840 --> 00:02:17,990
Why don't we save and make sure that if your server is running, you need to restart it?

29
00:02:18,290 --> 00:02:23,990
Because we didn't make changes in data entry, and every time we do that, we need to restart the server.

30
00:02:24,140 --> 00:02:24,980
So let me do that.

31
00:02:25,490 --> 00:02:30,980
And if everything is correct, we should still see Port five thousand.

32
00:02:31,260 --> 00:02:36,800
Now, I'm not going to check the response in this video because the next one will complete the register

33
00:02:37,070 --> 00:02:40,490
so we might as well do everything at the same time.

