1 00:00:00,780 --> 00:00:05,160 After a lot of work we've now finally got this information about whether or not we are signed in. 2 00:00:05,160 --> 00:00:07,350 Inside of our landing page. 3 00:00:07,350 --> 00:00:11,590 The last thing we need to do is take a look at that current user prop if it is equal to nil. 4 00:00:11,610 --> 00:00:12,410 We need to print out. 5 00:00:12,420 --> 00:00:13,540 You are not signed in. 6 00:00:13,740 --> 00:00:18,780 And if it is equal to well anything some kind of object as an I.D. or email inside of it then we will 7 00:00:18,780 --> 00:00:20,550 print out you are signed in. 8 00:00:20,670 --> 00:00:22,770 So let's flip back over and give this a shot. 9 00:00:23,550 --> 00:00:24,750 Here's my landing page stuff. 10 00:00:26,180 --> 00:00:28,240 I'm going to delete everything that's inside there right now. 11 00:00:28,350 --> 00:00:33,860 I'll put in just a very simple ternary expression so I can return aren't user. 12 00:00:34,210 --> 00:00:45,410 If that thing is defined I will show how about an H1 that says you are assigned in otherwise an H1 that 13 00:00:45,410 --> 00:00:52,960 says you are not signed in and naturally we could probably just return a simple H1 and then use the 14 00:00:52,960 --> 00:00:56,880 Turner expression side but I'll leave that up to you. 15 00:00:56,940 --> 00:01:03,250 I'm gonna save that look back over and I will see that I am in fact signed it. 16 00:01:03,580 --> 00:01:06,680 Now if you want to test this out with us being signed out. 17 00:01:06,760 --> 00:01:11,830 Well we only have the ability to sign out of our application yet but we can manually tell her our application 18 00:01:11,830 --> 00:01:13,060 to sign ourselves out. 19 00:01:13,150 --> 00:01:16,900 Let me show you what I mean inside of my Chrome developer console. 20 00:01:16,900 --> 00:01:23,480 I'm going to open up the very last little tab over here and find the one marked application inside of 21 00:01:23,480 --> 00:01:23,830 here. 22 00:01:23,840 --> 00:01:31,870 I'm going to find on the left hand nav cookies and I should be able to expand cookies like so select 23 00:01:31,870 --> 00:01:37,720 this domain and it will show the cookie that is set for this domain so I can select that and then clear 24 00:01:37,750 --> 00:01:38,740 all. 25 00:01:38,740 --> 00:01:44,200 And now we should not have any cookie tied to ticketing but dev so if I now attempt to refresh I will 26 00:01:44,200 --> 00:01:46,210 see you are not signed in. 27 00:01:46,270 --> 00:01:48,950 Well I'd say this is looking like it's working out pretty well. 28 00:01:49,180 --> 00:01:49,520 OK. 29 00:01:49,570 --> 00:01:54,010 Well that's pretty much it for handling this kind of log in page or a domain landing page. 30 00:01:54,070 --> 00:01:57,030 We still have to take care of the header and the sign and page as well. 31 00:01:57,130 --> 00:01:59,090 So still a little bit of work left. 32 00:01:59,150 --> 00:02:01,090 Quick pause right here and we'll continue in just a moment.