mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
Update 4.sessions-and-authentication.md
Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
This commit is contained in:
parent
95dabb13ad
commit
93f5fe07aa
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user