When it comes to authentication, the server-side setup is crucial. For single-page apps, we need a set of API routes to interact with the session.
Generally, we need three routes:
Most importantly, we need a global way to filter all requests so that only authenticated users can access private routes. This will be implemented as a server middleware in Nuxt.js.
Nuxt-auth-utils already includes a route for logging out that we can extend, along with a built-in route f