This task can be performed using SaaSCore
The Ultimate Next.js Saas Boilerplate.
Best product for this task

SaaSCore
no-code
SaasCore is a Next.js boilerplate designed to streamline the development of SaaS applications, enabling fast and efficient launch. This comprehensive starter kit includes landing pages, a blog section, client, affiliate, and admin dashboards, payment and authentication integration, a built-in affiliate program, and more.

What to expect from an ideal product
- Next.js authentication setup with ready-to-use login, signup, and password reset flows
- Built-in Stripe integration handling subscriptions, one-time payments, and recurring billing
- User roles and permissions system managing access for customers, affiliates, and admins
- Secure API routes and middleware protecting sensitive data and payment operations
- Complete user dashboard showing payment history, subscription status, and account details