| name | Auth for subdomains |
|---|---|
| slug | subdomains-auth |
| description | Learn how to secure sub domains using Next.js and NextAuth. |
| framework | Next.js |
| useCase | Documentation |
| css | Tailwind |
| deployUrl | https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/subdomain-auth&project-name=subdomain-auth&repository-name=subdomain-auth&env=GITHUB_ID,GITHUB_SECRET,SECRET |
| demoUrl | https://solutions-subdomain-auth.vercel.sh |
Secure sub domains in Next.js using NextAuth.js.
You can choose from one of the following two methods to use this repository:
Deploy the example using Vercel:
Execute create-next-app with pnpm to bootstrap the example:
pnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/subdomain-auth subdomain-authNext, run Next.js in development mode:
pnpm devDeploy it to the cloud with Vercel (Documentation).