1 00:00:00,980 --> 00:00:03,300 Our sign in root handler is now looking pretty good. 2 00:00:03,330 --> 00:00:05,220 So let's do a very quick test of it. 3 00:00:05,240 --> 00:00:12,120 I'm gonna flip back over to post man I'm going to change my route right here to sign up. 4 00:00:12,130 --> 00:00:16,480 So from this point on we do need to make sure that we have some email and password combinations that 5 00:00:16,480 --> 00:00:21,640 we can actually remember because we need to sign up and then sign in with the same email and password. 6 00:00:21,640 --> 00:00:23,030 So I to put in an email. 7 00:00:23,080 --> 00:00:30,230 My personal favorite which is test out test dot com and a password of simply password. 8 00:00:30,270 --> 00:00:38,580 Then go ahead and send that and all right I have my account all now changed my route up here to sign 9 00:00:38,730 --> 00:00:46,550 in and I'm going to send in a request with the same exact email and password awesome. 10 00:00:46,620 --> 00:00:52,110 So I got back the user that I now signed in AZ and in theory we should have also gotten back a brand 11 00:00:52,110 --> 00:00:58,900 new cookie right here when we signed in we can also test them the invalid cases as well. 12 00:00:58,900 --> 00:01:00,160 Even though we really already did that. 13 00:01:00,160 --> 00:01:02,560 So for example I could put in an empty password. 14 00:01:03,070 --> 00:01:04,060 Nope doesn't work. 15 00:01:04,060 --> 00:01:10,340 I could put in a valid password but one that does not match my existing one so if I said that in I get 16 00:01:10,340 --> 00:01:11,390 invalid credentials. 17 00:01:11,390 --> 00:01:12,890 That looks good. 18 00:01:12,920 --> 00:01:16,590 I can also try to enter in an email that doesn't actually exist. 19 00:01:16,640 --> 00:01:24,040 So email of test one at test dot com and I get the same invalid credentials. 20 00:01:24,130 --> 00:01:25,980 So I'd say that looks pretty good. 21 00:01:25,990 --> 00:01:29,890 Well we've got signed in all completes and sign up all complete. 22 00:01:29,890 --> 00:01:32,320 Still have a little bit to do around authentication. 23 00:01:32,320 --> 00:01:36,520 Now as reminder as we're going through this stuff we're gonna be putting it altogether more quickly 24 00:01:36,550 --> 00:01:41,830 and more quickly so we're gonna go through the create or some of the current user a root handler to 25 00:01:41,830 --> 00:01:46,510 figure out whether or not someone is signed in and we're also going to put together a log out handler 26 00:01:46,510 --> 00:01:47,070 as well. 27 00:01:47,170 --> 00:01:52,210 And both those are going to be put together pretty darn quickly so quick pause right here and we'll 28 00:01:52,210 --> 00:01:53,110 continue in just a minute.