MonoCloud’s Next.js SDK lets you add authentication to your Next.js application.
Use it to:
The SDK supports both App Router and Pages Router applications.
Install the SDK using your package manager:
npm install @monocloud/auth-nextjs
View the source on GitHub: monocloud/auth-js
Start with a quickstart to see MonoCloud in action:
Each quickstart walks you from a new Next.js app to a working sign-in flow, including authentication, middleware setup, and protected routes.
To integrate MonoCloud into your own app:
Follow the installation and configuration guide.
Choose the guides that match your routing setup to secure different parts of your app.
These guides show how to:
For applications using the Next.js App Router:
For applications using the Next.js Pages Router: