Learn how to secure sub domains using Next.js and NextAuth.
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).
Learn how to secure sub domains using Next.js and NextAuth.
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).