Overview

MonoCloud's Next.js SDK provides the tools to protect routes, authenticate users, and manage user sessions in your Next.js application.

This guide offers reference materials to help you integrate MonoCloud's Next.js SDK into your application.

Where to find the MonoCloud Next.js SDK

NPM logonpm i @monocloud/nextjs-auth
Yarn logoyarn add @monocloud/nextjs-auth
GitHub logogh repo clone monocld/monocloud-nextjs-auth

Quickly set up a demo app

The fastest way to see MonoCloud in action with Next.js is to follow one of our quickstart guides:

When you're ready to build your own Next.js application with MonoCloud, follow our detailed guides below.

Prerequisites

The first step to using MonoCloud with Next.js is to follow the installation and configuration guide. This will set you up with:

  • A new Next.js application
  • A MonoCloud account
  • A web application set up in your MonoCloud account
  • The MonoCloud Next.js SDK installed in your Next.js application
  • The environment variables needed to connect your Next.js application to MonoCloud

Next, choose between the App Router or Page Router guides, depending on your Next.js application setup.