Nuxt Authentication

Lessons

1. Introduction

3:57

2. The Authentication Flow

5:13

3. Server-Side Routes

15:06

4. Client-Side Pages

10:02

5. Handling Invalid Session

8:03

6. CSRF

11:29

7. Stateful vs Stateless

10:03

Stateful vs Stateless

What we’ve been building so far is broadly called a stateful authentication setup.

“State” in here refers to the database table on the server side where we store the session token, which is keeping track of the users who have been logged in. Without such server-side state, we won’t be able to tell “who” is allowed to access the private portions of the site without