mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
docs: fix typo (#10019)
This commit is contained in:
parent
14fba85ac8
commit
25978c936f
@ -95,7 +95,7 @@ Example of an `auth` middleware protecting the `/dashboard` page:
|
||||
|
||||
```ts [middleware/auth.ts]
|
||||
export default defineNuxtRouteMiddleware((to, from) => {
|
||||
// isAuthenticated() is an example method verifying if an user is authenticated
|
||||
// isAuthenticated() is an example method verifying if a user is authenticated
|
||||
if (isAuthenticated() === false) {
|
||||
return navigateTo('/login')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user