mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* feat(middleware): introduce Middleware API to Next.js * chore(app): upgrade Next.js in dev app * chore(dev): add Middleware protected page to dev app * chore(middleware): add `next/middleware` to `exports` * fix(middleware): bail out redirect on custom pages * fix(middleware): allow one-line export * chore(middleware): simplify code * fix(middleware): redirect back to page after succesful login * feat(middleware): re-export `withAuth` as `default` * chore: export middleware from `next-auth/middleware` * chore: add `middleware` files to npm * feat(middleware): handle chaining, fix some bugs * chore(dev): showcase different middlewares * chore(middleware): remove `@ts-expect-error` comments * chore: update build clean script * fix: bail out when NextAuth.js paths * refactor: be more explicit about `initConfig` result * refactor: simplify * refactor: use `callbacks` similarily to `NextAuthOptions` * refactor: use `nextauth` namespace when setting `token` on `req` * refactor: don't allow passing `secret` * addressing review
36 lines
964 B
JSON
36 lines
964 B
JSON
{
|
|
"name": "next-auth-app",
|
|
"version": "1.0.0",
|
|
"description": "NextAuth.js Developer app",
|
|
"private": true,
|
|
"scripts": {
|
|
"clean": "rm -rf .next",
|
|
"postinstall": "rm -rf node_modules/next-auth",
|
|
"dev": "npm-run-all --parallel dev:next watch:css copy:css ",
|
|
"dev:next": "next dev",
|
|
"build": "next build",
|
|
"copy:css": "cpx \"../css/**/*\" src/css --watch",
|
|
"watch:css": "cd .. && npm run watch:css",
|
|
"start": "next start",
|
|
"email": "npx fake-smtp-server",
|
|
"start:email": "npm run email"
|
|
},
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@next-auth/fauna-adapter": "^1.0.1",
|
|
"@next-auth/prisma-adapter": "^1.0.1",
|
|
"@prisma/client": "^3.7.0",
|
|
"fake-smtp-server": "^0.8.0",
|
|
"faunadb": "^4.4.1",
|
|
"next": "^12.0.8",
|
|
"nodemailer": "^6.7.2",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"cpx": "^1.5.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prisma": "^3.7.0"
|
|
}
|
|
}
|