docs: fix typo (#10019)

This commit is contained in:
PaulUgwu 2023-01-10 11:46:56 +01:00 committed by GitHub
parent 14fba85ac8
commit 25978c936f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ Example of an `auth` middleware protecting the `/dashboard` page:
```ts [middleware/auth.ts] ```ts [middleware/auth.ts]
export default defineNuxtRouteMiddleware((to, from) => { 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) { if (isAuthenticated() === false) {
return navigateTo('/login') return navigateTo('/login')
} }