generated from azures04/Base-REST-API
Introduce bootstrap entrypoint and prestartup to ping DB and generate/manage RSA keypair. Add security module for key IO. Implement JWT-based access and refresh tokens (tokensService) with refresh_tokens table and repo. Add auth, provider and user services, and refresh-token management. Update repositories (users, credentials, providers, servers) with SQL fixes and new helper methods. Move DDL execution to bootstrap (remove from server). Update package.json main and add dependencies (bcryptjs, jsonwebtoken). Update .env.example and .gitignore accordingly.
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"name": "base-rest-api",
|
|
"version": "0.0.1-alpha",
|
|
"description": "",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.azures.fr/azures04/Base-REST-API"
|
|
},
|
|
"license": "AGPL-3.0-only",
|
|
"author": {
|
|
"name": "azures04",
|
|
"url": "https://gitea.azures.fr/azures04/Base-REST-API",
|
|
"email": "gilleslazure04@gmail.com"
|
|
},
|
|
"type": "commonjs",
|
|
"main": "bootstrap.js",
|
|
"scripts": {
|
|
"start:dev": "nodemon .",
|
|
"start": "node .",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix"
|
|
},
|
|
"homepage": "https://gitea.azures.fr/azures04/Base-REST-API",
|
|
"readme": "https://gitea.azures.fr/azures04/Base-REST-API/src/branch/main/README.md",
|
|
"dependencies": {
|
|
"bcryptjs": "^3.0.3",
|
|
"colors": "^1.4.0",
|
|
"cors": "^2.8.6",
|
|
"dotenv": "^17.4.2",
|
|
"express": "^5.2.1",
|
|
"helmet": "^8.3.0",
|
|
"hpp": "^0.2.3",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"mariadb": "^3.5.3",
|
|
"path-to-regexp": "^8.4.2",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"eslint": "^10.9.1",
|
|
"globals": "^17.11.0",
|
|
"nodemon": "^3.1.14"
|
|
}
|
|
}
|