Protecting Routes with Middleware

In Authentication in Next.js I covered how to issue and store a session once a user logs in. That article stopped at the moment the cookie lands in the browser.