├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── AuthButton.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ └── whoami │ │ │ └── route.ts │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── test-route │ │ ├── WhoAmIAPI.tsx │ │ ├── WhoAmIRSC.tsx │ │ ├── WhoAmIServerAction.tsx │ │ └── page.tsx ├── auth │ ├── helpers.ts │ └── index.ts ├── components │ └── ui │ │ └── button.tsx ├── lib │ └── utils.ts └── middleware.ts ├── tailwind.config.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- 1 | NEXTAUTH_SECRET= 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/components.json -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/AuthButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/AuthButton.tsx -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/whoami/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/api/whoami/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/test-route/WhoAmIAPI.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/test-route/WhoAmIAPI.tsx -------------------------------------------------------------------------------- /src/app/test-route/WhoAmIRSC.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/test-route/WhoAmIRSC.tsx -------------------------------------------------------------------------------- /src/app/test-route/WhoAmIServerAction.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/test-route/WhoAmIServerAction.tsx -------------------------------------------------------------------------------- /src/app/test-route/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/app/test-route/page.tsx -------------------------------------------------------------------------------- /src/auth/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/auth/helpers.ts -------------------------------------------------------------------------------- /src/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/auth/index.ts -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/next-auth-v5/HEAD/tsconfig.json --------------------------------------------------------------------------------