Nest everything within company and store currentCompany
=> company
object on session
#65
Labels
😍 ENHANCEMENT
New feature or request
OpenCap is a multi tenant application. Which means users needs to be able to toggle between companies pretty easily, when doing so:-
currentCompany
on session so there is no conflict on which company's data to fetch (on server side)/dashboard
by/:companyId
and nest all children (pages) within/:companyId
.opencap.co/:companyId/stakeholders
/signup
or/login
page withcurrentCompany
object on their session, redirect themcurrentCompany
's page. That is:/:companyId
, if they do not havecurrentCompany
on session, redirect them to/onboarding
Reference
The text was updated successfully, but these errors were encountered: