So before we go too much further, perhaps we should make sure everything is actually working.
It's been a while since we've run our application, so I'm going to open my terminal and just type make
start to get both the back end and front end running and there they go.
And that's encouraging.
So let's go back to our Web browser and try things out.
So I'll click on log in and I'll leave the terminal window open here, the JavaScript terminal.
And first of all, I'll just put an invalid user.
So Jack Smith dot com with a password secret and I should get unauthorized over here.
So let's try to and we say invalid authentication credentials.
The error is true.
That's perfect.
Now, if you look in the database and let me bring in my database here, if you look under users, we
actually have one user in here and that user has the email of admin at example, dot com and then a
password hash.
And that hash is actually for the password password, all lowercase.
So let's try this time putting in admin at example dot com with the password, password, all lowercase
log in and it should give me a valid response success and it does no error.
Errors false and messages success.
Now what if I enter my email as a d m in at example dot com all mixed case.
They should still work because I should convert that to lowercase.
Let's make sure and success.
OK, so things do seem to be working.
So now we can go back and generate a token and send that to the user and we'll start that in the next
lecture.