├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── (public) │ ├── layout.tsx │ ├── login │ │ ├── form.tsx │ │ └── page.tsx │ ├── page.tsx │ └── signup │ │ ├── form.tsx │ │ └── page.tsx ├── auth │ ├── 01-auth.ts │ ├── 02-database-session.ts │ ├── 02-stateless-session.ts │ ├── 03-dal.ts │ └── definitions.ts ├── dashboard │ ├── layout.tsx │ ├── logout-button.tsx │ └── page.tsx ├── favicon.ico ├── globals.css └── layout.tsx ├── components.json ├── components └── ui │ ├── badge.tsx │ ├── button.tsx │ ├── card.tsx │ ├── checkbox.tsx │ ├── icons.tsx │ ├── input.tsx │ └── label.tsx ├── drizzle.config.ts ├── drizzle ├── db.ts ├── envConfig.ts ├── schema.ts └── seed.ts ├── lib └── utils.ts ├── middleware.ts ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── prettier.config.js ├── public ├── next.svg ├── placeholder-user.jpg ├── placeholder.svg └── vercel.svg ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/README.md -------------------------------------------------------------------------------- /app/(public)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/layout.tsx -------------------------------------------------------------------------------- /app/(public)/login/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/login/form.tsx -------------------------------------------------------------------------------- /app/(public)/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/login/page.tsx -------------------------------------------------------------------------------- /app/(public)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/page.tsx -------------------------------------------------------------------------------- /app/(public)/signup/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/signup/form.tsx -------------------------------------------------------------------------------- /app/(public)/signup/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/(public)/signup/page.tsx -------------------------------------------------------------------------------- /app/auth/01-auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/auth/01-auth.ts -------------------------------------------------------------------------------- /app/auth/02-database-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/auth/02-database-session.ts -------------------------------------------------------------------------------- /app/auth/02-stateless-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/auth/02-stateless-session.ts -------------------------------------------------------------------------------- /app/auth/03-dal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/auth/03-dal.ts -------------------------------------------------------------------------------- /app/auth/definitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/auth/definitions.ts -------------------------------------------------------------------------------- /app/dashboard/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/dashboard/layout.tsx -------------------------------------------------------------------------------- /app/dashboard/logout-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/dashboard/logout-button.tsx -------------------------------------------------------------------------------- /app/dashboard/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/dashboard/page.tsx -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components.json -------------------------------------------------------------------------------- /components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/badge.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /components/ui/icons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/icons.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /drizzle/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/drizzle/db.ts -------------------------------------------------------------------------------- /drizzle/envConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/drizzle/envConfig.ts -------------------------------------------------------------------------------- /drizzle/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/drizzle/schema.ts -------------------------------------------------------------------------------- /drizzle/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/drizzle/seed.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/prettier.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/placeholder-user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/public/placeholder-user.jpg -------------------------------------------------------------------------------- /public/placeholder.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/public/placeholder.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vercel-labs/app-router-auth/HEAD/tsconfig.json --------------------------------------------------------------------------------