mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
f38cf6b65f
commit
e9e6c1b142
@ -20,10 +20,8 @@ Additionally, we'll use [nuxt-aut-utils](https://github.com/Atinux/nuxt-auth-uti
|
|||||||
|
|
||||||
### 1. Install nuxt-auth-utils
|
### 1. Install nuxt-auth-utils
|
||||||
|
|
||||||
|
|
||||||
Install the [auth-utils](https://github.com/Atinux/nuxt-auth-utils) module using the `nuxi` CLI.
|
Install the [auth-utils](https://github.com/Atinux/nuxt-auth-utils) module using the `nuxi` CLI.
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx nuxi@latest module add auth-utils
|
npx nuxi@latest module add auth-utils
|
||||||
```
|
```
|
||||||
@ -398,6 +396,6 @@ const { data: users } = await useFetch("/api/users");
|
|||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Complete!
|
### Complete
|
||||||
|
|
||||||
We've successfully set up user registration and authentication in our Nuxt app. Users can now register, log in, and log out. We've also protected sensitive routes on the server and client side to ensure that only authenticated users can access them.
|
We've successfully set up user registration and authentication in our Nuxt app. Users can now register, log in, and log out. We've also protected sensitive routes on the server and client side to ensure that only authenticated users can access them.
|
||||||
|
Loading…
Reference in New Issue
Block a user