Skip to content

Auth for subdomains

Learn how to secure sub domains using Next.js and NextAuth.

Framework Next.js
Use Case Multi tenant-apps
CSS Tailwind
Auth Auth0
Publisher ▲ Vercel

Subdomain Auth Example

Features

  • Secure sub domains

How to Use

You can choose from one of the following two methods to use this repository:

One-Click Deploy

Deploy the example using Vercel:

Clone and Deploy

Download this repository via git:

git clone https://github.com/vercel/examples.git

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/subdomain-auth subdomain-auth
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/subdomain-auth subdomain-auth

Deploy it to the cloud with Vercel (Documentation).

Auth for subdomains

Learn how to secure sub domains using Next.js and NextAuth.

Framework Next.js
Use Case Multi tenant-apps
CSS Tailwind
Auth Auth0
Publisher ▲ Vercel

Subdomain Auth Example

Features

  • Secure sub domains

How to Use

You can choose from one of the following two methods to use this repository:

One-Click Deploy

Deploy the example using Vercel:

Clone and Deploy

Download this repository via git:

git clone https://github.com/vercel/examples.git

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/subdomain-auth subdomain-auth
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/subdomain-auth subdomain-auth

Deploy it to the cloud with Vercel (Documentation).

Unleash New Possibilities

Deploy your app on Vercel and unlock its full potential