My app currently has two different dashboard setup.
Member and provider, I'm thinking about how to handle the routing and redirection after Auth.
Should I have two different route group declarations for the roles or a single /dashboard route and then render content conditionally based on the roles.
If I have two different route group declarations, how do I handle the redirection to the respective routes after Auth.
For member home /dashboard/member
For provider home /dashboard/provider
Another example might be /dashboard/member/profile and /dashboard/provider/profile.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.