├── .env ├── .eslintrc.json ├── .gitignore ├── README.md ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── src └── app │ ├── api │ ├── auth │ │ └── [...nextauth] │ │ │ └── route.ts │ └── whoAmI │ │ └── route.ts │ ├── apiFromClient │ └── page.tsx │ ├── apiFromServer │ └── page.tsx │ ├── components │ ├── NavMenu.tsx │ └── SessionProvider.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ ├── protected │ └── page.tsx │ └── serverAction │ ├── WhoAmIButton.tsx │ └── page.tsx ├── tailwind.config.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/README.md -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/whoAmI/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/api/whoAmI/route.ts -------------------------------------------------------------------------------- /src/app/apiFromClient/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/apiFromClient/page.tsx -------------------------------------------------------------------------------- /src/app/apiFromServer/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/apiFromServer/page.tsx -------------------------------------------------------------------------------- /src/app/components/NavMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/components/NavMenu.tsx -------------------------------------------------------------------------------- /src/app/components/SessionProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/components/SessionProvider.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/protected/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/protected/page.tsx -------------------------------------------------------------------------------- /src/app/serverAction/WhoAmIButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/serverAction/WhoAmIButton.tsx -------------------------------------------------------------------------------- /src/app/serverAction/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/src/app/serverAction/page.tsx -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/app-router-auth-using-next-auth/HEAD/tsconfig.json --------------------------------------------------------------------------------