From 9e3f66228d989a8014a9ebff2f3022f8a8c00a4e Mon Sep 17 00:00:00 2001 From: jonvaljonathan Date: Mon, 9 Dec 2024 10:48:55 -0600 Subject: [PATCH] Update router.md Private Set reference should include useAuth={useAuth} on the router. --- docs/docs/router.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/router.md b/docs/docs/router.md index 0e8dd94ced8c..79d0098b90af 100644 --- a/docs/docs/router.md +++ b/docs/docs/router.md @@ -165,7 +165,7 @@ A `PrivateSet` makes all Routes inside that Set require authentication. When a u Here's an example of how you'd use a `PrivateSet`: ```jsx title="Routes.jsx" - + @@ -178,7 +178,7 @@ For more fine-grained control, you can specify `roles` (which takes a string for To protect private routes for access by a single role: ```jsx title="Routes.jsx" - + @@ -190,7 +190,7 @@ To protect private routes for access by a single role: To protect private routes for access by multiple roles: ```jsx title="Routes.jsx" - +