See more
… it with the super secret password you passed into the scheme using iron, adds the session token to memory, and sets that encrypted json object as the cookie using HttpOnly. By setting the cookie to HttpOnl…
…ny of our routes. Lets add a login route that sets the user’s session with the ‘base’ authentication strategy. Also we are going to use Joi to validate that our incoming payload is an email and passwor…