Our sign in root handler is now looking pretty good.
So let's do a very quick test of it.
I'm gonna flip back over to post man I'm going to change my route right here to sign up.
So from this point on we do need to make sure that we have some email and password combinations that
we can actually remember because we need to sign up and then sign in with the same email and password.
So I to put in an email.
My personal favorite which is test out test dot com and a password of simply password.
Then go ahead and send that and all right I have my account all now changed my route up here to sign
in and I'm going to send in a request with the same exact email and password awesome.
So I got back the user that I now signed in AZ and in theory we should have also gotten back a brand
new cookie right here when we signed in we can also test them the invalid cases as well.
Even though we really already did that.
So for example I could put in an empty password.
Nope doesn't work.
I could put in a valid password but one that does not match my existing one so if I said that in I get
invalid credentials.
That looks good.
I can also try to enter in an email that doesn't actually exist.
So email of test one at test dot com and I get the same invalid credentials.
So I'd say that looks pretty good.
Well we've got signed in all completes and sign up all complete.
Still have a little bit to do around authentication.
Now as reminder as we're going through this stuff we're gonna be putting it altogether more quickly
and more quickly so we're gonna go through the create or some of the current user a root handler to
figure out whether or not someone is signed in and we're also going to put together a log out handler
as well.
And both those are going to be put together pretty darn quickly so quick pause right here and we'll
continue in just a minute.