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

CSRF

What is CSRF?

By now, we’re all familiar with the harms that security threats can pose to web applications. Cross-Site Request Forgery (CSRF) attacks pose significant threats, potentially leading to unauthorized actions and data breaches.

With a CSRF, the attacker gets the user’s browser to make a state-changing request. This is usually done by tricking the user into visiting the attacker’s website, which then sends a request to the target website. Because browsers automatically send cookies to the serve