About AuthPage and AuthGuard #130
-
Hello Sir, I have the bottom navigation bar assume I have this route router.route(
ChatPage.path,
(context) => ChatPage(),
transition: PageTransitionType.fade,
authPage: false,
routeGuards: [
AuthRouteGuard(),
],
); but the route I'm not using with routeTo(ChatPage.path) I'm Directly passing this in the bottom navigation bar So If possible manage Auth in NyState/statelesswidget page |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @jitendravn,
If you need to handle user permissions for authenticated users, check out this package permission_policy. |
Beta Was this translation helpful? Give feedback.
Hi @jitendravn,
RouteGuard
's are used to protect a page on navigation E.g. using therouteTo
helper.authPage
is used to override the initial page to be shown if the user is authenticated in your project.If you need to handle user permissions for authenticated users, check out this package permission_policy.