This is an example using NextAuth.js for authentication.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, pnpm, or Bun to bootstrap the example:
npx create-next-app --example auth auth-appyarn create next-app --example auth auth-apppnpm create next-app --example auth auth-appbunx create-next-app --example auth auth-appDeploy it to the cloud with Vercel (Documentation).