├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── next-auth.d.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── auth │ │ └── [...nextauth].ts │ ├── hello.ts │ └── register.ts ├── index.tsx ├── login.tsx └── register.tsx ├── prisma ├── migrations │ ├── 20230505105922_init │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public ├── favicon.ico └── vercel.svg ├── styles ├── Home.module.css ├── auth.css └── globals.css └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- 1 | DATABASE_URL="file:./db.sqlite3" 2 | JWT_SECRET="" 3 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/next-auth.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/api/hello.ts -------------------------------------------------------------------------------- /pages/api/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/api/register.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/login.tsx -------------------------------------------------------------------------------- /pages/register.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/pages/register.tsx -------------------------------------------------------------------------------- /prisma/migrations/20230505105922_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/prisma/migrations/20230505105922_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/auth.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/styles/auth.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- 1 | .container { 2 | width: 80%; 3 | margin: 100px auto; 4 | } 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-programming/auth-creds-tutorial/HEAD/tsconfig.json --------------------------------------------------------------------------------