Skip to content

Commit

Permalink
docs: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 11, 2024
1 parent ae2cf03 commit ad9ac7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/nuxt/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ export default defineNuxtRouteMiddleware(async (to, from) => {

:::

````vue{2-4}
You can even automatically handle the auth state by _watching_ the current user. We recommend you do this in either a layout or the `app.vue` component so the watcher is always active:

```vue
```vue{8-15}
<script setup>
const router = useRouter()
const route = useRoute()
Expand Down

0 comments on commit ad9ac7b

Please sign in to comment.