Files
archived-next-auth/example/package.json
Iain Collins 84e43d0630 Release 1.12.1; improve compatibility, fix session save bug; update dependancies
* All dependancies updated, including the example to include latest release of Next.js and React.
* Includes fix for Keycloak strategy support and improved oAuth strategy compatibility.
* Includes enhancement for exposing additional parameters when calling getProfile().
* `sessionResave` now defaults to `true`, which ensures sessions always rotate properly.

This can be disabled for special use cases - it does not work well with some Express Session Stores, but for most people it should be fine and should rotate sessions correctly. If set to `false` user sessions are likely to expire prematurely. It is strongly recommended you do not change this from the default setting.

As a side effect, this will case all sessions - including anonymous sessions created when users have connected but not logged in yet - to be saved as a session in the store. This is because the current Cross Site Request Forgery option associates a token with a session in the browser.

If you want to avoid creating anonymous sessions,  set `csrf` to `false` to disable CSRF protection;  sessions will then only be created when a user signs in. A future update should include the option to implement CSRF using the Double Submit Cookie method so it can be enabled without causing this side effect.
2018-12-04 05:03:12 +00:00

36 lines
920 B
JSON

{
"name": "next-auth-examples",
"version": "1.12.1",
"description": "An example project for next-auth",
"repository": "https://github.com/iaincollins/next-auth.git",
"main": "",
"scripts": {
"dev": "NODE_ENV=development node index.js",
"build": "next build",
"start": "node index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"connect-mongo": "^2.0.3",
"dotenv": "^6.1.0",
"express-session": "^1.15.6",
"mongodb": "^3.1.10",
"nedb": "^1.8.0",
"next": "^7.0.2",
"next-auth": "^1.12.1",
"nodemailer": "^4.7.0",
"nodemailer-direct-transport": "^3.3.2",
"nodemailer-smtp-transport": "^2.7.4",
"passport-facebook": "^2.1.1",
"passport-google-oauth": "^1.0.0",
"passport-twitter": "^1.0.4",
"react": "^16.6.3",
"react-dom": "^16.6.3"
},
"now": {
"name": "next-auth-demo",
"alias": "next-auth-demo.now.sh"
}
}