Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/pages/docs/authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ thrown and caught by your top level Error Boundary.
If you want to authorize your pages based on the user's role

```tsx
// user must be logged in and with role "ADMIN" or "USER"
// user must be logged in and with role "ADMIN"
Page.authenticate = { role: "ADMIN" }
// or set role as a list, where user must be logged in and with role "ADMIN" or "USER"
Page.authenticate = { role: ["ADMIN", "USER"] }
Expand Down