Skip to content

Commit

Permalink
docs: Add missing middleware option for guestmode (#697)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoey <[email protected]>
  • Loading branch information
anischihi and zoey-kaiser authored Mar 3, 2024
1 parent b834dec commit 7865ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/3.application-side/5.guest-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This behavior is useful for login pages that you don't want to be visitable by l
Briefly summarized, you can enable guest mode on a page by passing the following configuration:
```ts
definePageMeta({
middleware: 'auth', // Only required if globalAppMiddleware is disabled
auth: {
unauthenticatedOnly: true,
navigateAuthenticatedTo: '/profile',
Expand Down

0 comments on commit 7865ba3

Please sign in to comment.