From e8d02e3c4cd610274fe5739899e7d96e4a149647 Mon Sep 17 00:00:00 2001 From: John Vandivier Date: Wed, 28 Dec 2022 20:26:10 -0500 Subject: [PATCH] Update authorization.mdx --- app/pages/docs/authorization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pages/docs/authorization.mdx b/app/pages/docs/authorization.mdx index 8cc24966..2c6dbad1 100644 --- a/app/pages/docs/authorization.mdx +++ b/app/pages/docs/authorization.mdx @@ -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"] }