Lint / Lint (Node/Svelte) (push) Successful in 24s
Lint / Lint (Go) (push) Successful in 28s
Lint / Lint (Python) (push) Failing after 14s
Tests / Test (Node/Svelte) (push) Successful in 18s
Tests / Test (Go) (push) Successful in 25s
Tests / Test (Python) (push) Successful in 12s
- Added TOTP support for two-factor authentication in the auth module. - Introduced new types and interfaces for TOTP setup and token actions in the web UI. - Created backend logic for generating and verifying TOTP secrets and tokens. - Implemented user management features including role assignments and user CRUD operations. - Enhanced UI components for managing users and TOTP settings. - Added styles for optional labels and authentication reset links. - Implemented reset code generation and validation for admin accounts.
1008 B
1008 B
@gabriel20xx/node-backend
Shared Node.js backend infrastructure for services that use PostgreSQL:
- validated
DATABASE_URLand pool settings; - one pool owner with startup retry, transient query retry, transactions, and shutdown;
- PBKDF2 password hashing and secure session-token helpers;
- short-lived, one-time admin reset codes printed to the server console;
- common account/session persistence;
- transaction-locked ordered migrations.
The package does not depend on Express. Each service keeps its own routes,
cookies, roles, validation policy, and domain repositories. Existing
MediaShared code can be migrated into this package incrementally; keep the
legacy package as a compatibility layer until every consumer has moved.
Pass a service-specific tableName to runMigrations when multiple services
share one PostgreSQL database, so their migration histories cannot collide.
Run npm test from this package or npm run test --workspace=@gabriel20xx/node-backend from SharedCode.