You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Session component allows the restriction of a page or layout by allowing only signed in users, only guests or no restriction. This example shows how to restrict a page to users only:
@@ -46,7 +37,6 @@ redirect = "home"
46
37
47
38
The `security` property can be user, guest or all. The `redirect` property refers to a page name to redirect to when access is restricted.
48
39
49
-
<aname="route-restriction"></a>
50
40
## Route Restriction
51
41
52
42
Access to routes can be restricted by applying the `AuthMiddleware`.
0 commit comments