Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,700 --> 00:00:06,060
Guys, welcome to the course of Lavallade app developers material, this is our partner.
2
00:00:06,070 --> 00:00:09,010
Twenty six inside the suite you will see.
3
00:00:09,910 --> 00:00:18,100
Look out Epper inside last video we had seen the concept of student profile epper inside this profile
4
00:00:18,100 --> 00:00:18,610
methode.
5
00:00:18,850 --> 00:00:23,440
We had used all type of function and from the odd helper function.
6
00:00:23,680 --> 00:00:27,930
By the help of token, we had to try the user information.
7
00:00:28,750 --> 00:00:37,480
Now this time we will walk over this logout API logout API means to delete the access token means the
8
00:00:37,480 --> 00:00:40,120
Zanten token what we have generated.
9
00:00:41,080 --> 00:00:42,910
So go inside is look out methode.
10
00:00:43,090 --> 00:00:50,320
In the last we have seen that this is the token we need to pass to to get overtaxes over this profile
11
00:00:50,320 --> 00:00:50,890
API.
12
00:00:51,190 --> 00:00:59,830
But inside logout API simply will delete this token so that this token will be invalid after logout
13
00:01:00,760 --> 00:01:05,650
back ed going inside this logout method.
14
00:01:06,040 --> 00:01:15,610
So simply what we will do by the help of OT helper function, we will try all this information and from
15
00:01:15,610 --> 00:01:20,620
the user information tokens simply, we will delete that.
16
00:01:22,000 --> 00:01:23,580
Try to understand this line.
17
00:01:24,370 --> 00:01:32,050
This is hot helper function by the help of all the help a function really driving user information.
18
00:01:32,260 --> 00:01:38,860
It means by the help of Sanctum token from the user information we are deleting.
19
00:01:38,860 --> 00:01:41,920
It's all tokens here.
20
00:01:41,970 --> 00:01:42,940
We can see that.
21
00:01:43,570 --> 00:01:44,710
So this is the line.
22
00:01:45,100 --> 00:01:54,640
This line means that we are deleting the currently logged in user tokens and simply let the return response.
23
00:01:56,020 --> 00:02:05,350
Jason MacKean every little status equals to one and a message.
24
00:02:07,790 --> 00:02:13,400
Student, no, out successfully.
25
00:02:15,920 --> 00:02:23,510
Now, if you save all these things, go inside, it ought to be so vile calling logout EPA read to pass
26
00:02:23,840 --> 00:02:28,220
authentication token inside header here out.
27
00:02:28,730 --> 00:02:29,570
So back to post.
28
00:02:29,570 --> 00:02:36,890
Man, if I copy this, you all open into a new tab and for the logout API to request I want something
29
00:02:36,980 --> 00:02:38,210
retrogressed I.
30
00:02:39,470 --> 00:02:48,770
Back to post, man, so instead of profile, let's say logout and Reverend, we past attraction Haddo.
31
00:02:49,100 --> 00:02:52,370
So what I will do, I will copy this bill to convert.
32
00:02:52,370 --> 00:02:54,490
We have generated inside this last video.
33
00:02:54,770 --> 00:02:56,510
This is of value Tolkan.
34
00:02:56,780 --> 00:02:59,030
So I have copied here.
35
00:02:59,030 --> 00:03:05,380
Go inside this Hadass and if I type authorization automatically this key will be populated.
36
00:03:05,810 --> 00:03:13,040
So this is our token nonathletic content type application.
37
00:03:13,280 --> 00:03:15,980
Chasten, accept.
38
00:03:19,100 --> 00:03:20,060
Except.
39
00:03:21,840 --> 00:03:28,500
This is not accept language, simply accept here we have the option and it will be application.
40
00:03:28,500 --> 00:03:35,210
Jason Samenow inside this logo, DPA and also inside last profile API.
41
00:03:35,400 --> 00:03:41,310
We have passed these three headers automation content type and accept.
42
00:03:41,670 --> 00:03:48,390
So when we click on this send button, this logout API will hit, logout mattered and this laut mattered
43
00:03:48,660 --> 00:03:50,220
on the behalf of Tolkan.
44
00:03:50,460 --> 00:03:57,450
What we have passed inside this header, it will retrieve the user information from that information.
45
00:03:57,600 --> 00:04:01,820
It will delete the token and locked out the student from the system.
46
00:04:02,490 --> 00:04:08,430
So if I click on this send button, as you can see, that student logged out successfully.
47
00:04:08,820 --> 00:04:13,530
If I backed this profile in the last video, this took token had worked.
48
00:04:14,460 --> 00:04:23,130
Now, as we can see that these token we have deleted inside this logout API, this token is now invalid.
49
00:04:23,430 --> 00:04:31,680
So if I click on this send button, as you can see, that unauthenticated are keen to make use this
50
00:04:31,680 --> 00:04:37,290
user login into the system, asking me to pass the email address and a password because this token is
51
00:04:37,500 --> 00:04:38,280
invalid.
52
00:04:39,480 --> 00:04:43,160
Click on send button streambed Lockton successfully.
53
00:04:43,650 --> 00:04:51,630
Now if I copy this token goal here inside this profile Epper passing here inside this header, pasting
54
00:04:51,630 --> 00:04:53,760
it here, click on Send Button.
55
00:04:54,030 --> 00:04:57,270
And this is all about student profile information.
56
00:04:57,960 --> 00:05:06,210
Now at the time of logout, simply the same token we to pass inside the header of this load API click
57
00:05:06,210 --> 00:05:09,240
on send button student logged out successfully.
58
00:05:09,240 --> 00:05:12,930
It means we have deleted all the tokens of this user.
59
00:05:14,070 --> 00:05:15,330
Go to profile API.
60
00:05:15,540 --> 00:05:19,050
I can click on Send Button and unauthenticated.
61
00:05:19,380 --> 00:05:21,450
It means the user has been locked out.
62
00:05:22,200 --> 00:05:31,140
So step by step guys, we had seen the concept of registration, login, profile and logout API from
63
00:05:31,140 --> 00:05:31,980
the next video.
64
00:05:32,160 --> 00:05:38,370
We will start for the other roads like we need to create project list, project, single project and
65
00:05:38,370 --> 00:05:39,240
delete Pursat.
66
00:05:39,690 --> 00:05:47,970
All these roads while calling all these Aptos we need to pass s.m Tolkan Inside header so far this session.
67
00:05:47,970 --> 00:05:50,220
Guys, thanks for watching and have a great day.
6587
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.