A church moved sign-in to Accounts without email set up there: codes and password links couldn't be sent, sign-in failed with a 500, nobody could get in. - contracts 1.9.0: messaging.status/test/set (SMTP, WAWP; secrets sealed); people.ensure answers emailSent. - Accounts 1.2.0: SendError instead of a 500; WhatsApp codes fall back to email; forgot password says email isn't set up; setup only offers methods that work; messaging.* (test, save only what worked); test WhatsApp in admin; WAWP from .env. - Events 3.1.0: Settings -> Sign-in shows what Accounts can send and copies this site's SMTP/WAWP into it (secrets stay on the server), test then save; Move disabled and refused (EMAIL_NOT_READY) without email. Tests: Accounts 54, contracts 218, Events 774, test:accounts 16 (also on Postgres). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.7 KiB
JSON
51 lines
1.7 KiB
JSON
{
|
|
"name": "@crosscode/accounts-backend",
|
|
"version": "1.2.0",
|
|
"description": "Cross Code Accounts: the church's sign-in (OpenID Connect provider), account pages API and admin API",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc -p tsconfig.build.json && node -e \"require('fs').writeFileSync('dist/build.json', JSON.stringify({ version: require('./package.json').version, builtAt: new Date().toISOString() }))\"",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "node --import tsx --test --test-reporter=spec \"tests/**/*.test.ts\"",
|
|
"postinstall": "prisma generate",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:deploy": "prisma migrate deploy && prisma generate",
|
|
"prisma:status": "prisma migrate status"
|
|
},
|
|
"dependencies": {
|
|
"@crosscode/contracts": "*",
|
|
"@node-rs/argon2": "^2.2.2",
|
|
"@prisma/adapter-pg": "^7.10.1",
|
|
"@prisma/client": "^7.10.1",
|
|
"bcryptjs": "^2.4.3",
|
|
"dotenv": "^16.3.1",
|
|
"express": "^5.3.0",
|
|
"express-rate-limit": "^8.6.2",
|
|
"nodemailer": "^10.3.0",
|
|
"oidc-provider": "9.13.3",
|
|
"pg-boss": "^11.1.2",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@crosscode/auth-client": "*",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^20.19.43",
|
|
"@types/nodemailer": "^6.4.17",
|
|
"@types/oidc-provider": "^9.13.1",
|
|
"@types/supertest": "^7.2.1",
|
|
"openid-client": "6.8.9",
|
|
"prisma": "^7.10.1",
|
|
"supertest": "^7.3.1",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|