mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
These changes fix compatibility issues with common SQL databases including MySQL, MariaDB and Postgres. * Fixes #147 - datetime now ANSI SQL timestamp * Fixes #160 - AccessToken and RefreshToken type change from varchar to text * Adds Docker Compose files to make it easier to test database integration. TODO: * Update documentation with configuration examples and latest compatibility info * Create DB URI parser (currently only object config works) * Database table/collection name prefix (will default to `next-auth_`) * MongoDB support MongoDB has some issues which mean it will require additional work and refactoring to support (while preserving SQL DB support, which is important). It's going to take some thinking about to get right; MongoDB support might have to be dropped from 2.0 (and follow in a subsequent release) but I'm going to review options and consider the impact before making a call.
57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
{
|
|
"name": "next-auth",
|
|
"version": "2.0.0-beta.45",
|
|
"description": "An authentication library for Next.js",
|
|
"repository": "https://github.com/iaincollins/next-auth.git",
|
|
"author": "Iain Collins <me@iaincollins.com>",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"build": "npm run build:js && npm run build:css",
|
|
"build:js": "babel src --out-dir dist",
|
|
"build:css": "postcss src/**/*.css --base src --dir dist",
|
|
"watch": "npm run watch:js | npm run watch:css",
|
|
"watch:js": "babel --watch src --out-dir dist",
|
|
"watch:css": "postcss --watch src/**/*.css --base src --dir dist",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"prepublishOnly": "npm run build",
|
|
"publish:beta": "npm publish --tag beta",
|
|
"publish:canary": "npm publish --tag canary",
|
|
"lint": "standard",
|
|
"lint:fix": "standard --fix",
|
|
"test:db:start": "docker-compose -f tests/docker/docker-compose.yml up",
|
|
"test:db:stop": "docker-compose -f tests/docker/docker-compose.yml down"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"index.js",
|
|
"providers.js",
|
|
"adapters.js",
|
|
"client.js"
|
|
],
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"nodemailer": "^6.4.6",
|
|
"oauth": "^0.9.15",
|
|
"preact": "^10.4.1",
|
|
"preact-render-to-string": "^5.1.7",
|
|
"querystring": "^0.2.0",
|
|
"typeorm": "^0.2.24"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.13.1",
|
|
"react-dom": "^16.13.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.8.4",
|
|
"@babel/core": "^7.9.6",
|
|
"@babel/preset-env": "^7.9.6",
|
|
"autoprefixer": "^9.7.6",
|
|
"babel-preset-minify": "^0.5.1",
|
|
"babel-preset-preact": "^2.0.0",
|
|
"cssnano": "^4.1.10",
|
|
"postcss-cli": "^7.1.1",
|
|
"postcss-nested": "^4.2.1",
|
|
"standard": "^14.3.3"
|
|
}
|
|
}
|