This task can be performed using UseSAASkit
Super Easy and Fully Configurable Next.js Templates
Best product for this task

UseSAASkit
dev-tools
UseSAASkit offers customizable Next.js templates with features like authentication, billing, and multi-organization support. Built on Next.js, Supabase, Stripe, TailwindCSS, and Resend, it helps you launch quickly by providing boilerplate code, letting you focus on your product.

What to expect from an ideal product
- Uses ready-to-go templates with built-in organization switching and user management
- Handles database schema setup for multiple organizations with pre-configured Supabase tables
- Includes role-based access control to manage different permission levels across organizations
- Provides pre-built components for organization invites and member management
- Sets up authentication flows that work across organizations while keeping data separate