Update 4.sessions-and-authentication.md

Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
This commit is contained in:
Daniel Roe 2024-07-19 15:47:41 +01:00 committed by GitHub
parent 95dabb13ad
commit 93f5fe07aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,7 @@ description: "Authentication is an extremely common requirement in web apps. Thi
## Introduction ## Introduction
In this recipe we'll be setting up user registration, login, sessions, and authentication in a full-stack Nuxt app. In this recipe we'll be setting up user registration, login, sessions, and authentication in a full-stack Nuxt app using [Nuxt Auth Utils](https://github.com/Atinux/nuxt-auth-utils) which provides convenient utilities for managing client-side and server-side session data. We'll install and use this to get the core session management functionality we're going to need to manage user logins. For the database ORM we'll be using [Drizzle](https://orm.drizzle.team/) with the built-in [Nitro SQL database](https://nitro.unjs.io/guide/database), but you can use any ORM or database connection strategy you prefer.
We'll be using [Nuxt Auth Utils](https://github.com/Atinux/nuxt-auth-utils) by [Atinux (Sébastien Chopin)](https://github.com/Atinux) which provides convenient utilities for managing client-side and server-side session data. We'll install and use this to get the core session management functionality we're going to need to manage user logins. For the database ORM we'll be using [Drizzle](https://orm.drizzle.team/) with [db0](https://db0.unjs.io/), but you can use any ORM or database connection strategy you prefer.
You'll need a `users` table in your database with the following columns: You'll need a `users` table in your database with the following columns:
- `id` (int, primary key, auto increment) - `id` (int, primary key, auto increment)