Add multi-tenant SaaS: business signup, owner/branch-manager/staff hierarchy, full tenant isolation

This commit is contained in:
EOH Developer
2026-10-04 01:22:42 -07:00
parent 3b22ddf6fb
commit 04e3051eb6
38 changed files with 640 additions and 67 deletions
+1
View File
@@ -37,6 +37,7 @@ export async function POST(req: NextRequest) {
const accessToken = signAccessToken({
sub: user._id.toString(),
businessId: user.businessId.toString(),
role: user.role,
branchId: user.branchId ? user.branchId.toString() : null,
deviceId,