Skip to content

Add API auth with sessions; remove legacy code - #398

Merged
nottherealalanturing merged 1 commit into
devfrom
chores
Jul 13, 2026
Merged

Add API auth with sessions; remove legacy code#398
nottherealalanturing merged 1 commit into
devfrom
chores

Conversation

@nottherealalanturing

Copy link
Copy Markdown
Contributor

Introduce a new authentication system for the API: add auth routes, types, session cookie helpers, JWT signing/verification, password hashing, and session middleware (apps/api/src/auth/*). Update README with JWT_SECRET and CORS_ORIGIN and document auth endpoints. Update apps/api/package.json to include runtime and dev deps needed for auth (bcryptjs, jsonwebtoken, cookie-parser and types) and remove the seed/test scripts. Remove a large set of legacy/unused modules and templates (legacy capsules routes/models, analytics, attachments, admin routes/middleware, seeding script, many tooling templates and docs) and add several web client pieces (auth-client, Nav, login/register components, DashboardGate) and i18n/message updates. This consolidates auth/session handling and prunes obsolete code in preparation for the new auth flow.

Introduce a new authentication system for the API: add auth routes, types, session cookie helpers, JWT signing/verification, password hashing, and session middleware (apps/api/src/auth/*). Update README with JWT_SECRET and CORS_ORIGIN and document auth endpoints. Update apps/api/package.json to include runtime and dev deps needed for auth (bcryptjs, jsonwebtoken, cookie-parser and types) and remove the seed/test scripts. Remove a large set of legacy/unused modules and templates (legacy capsules routes/models, analytics, attachments, admin routes/middleware, seeding script, many tooling templates and docs) and add several web client pieces (auth-client, Nav, login/register components, DashboardGate) and i18n/message updates. This consolidates auth/session handling and prunes obsolete code in preparation for the new auth flow.
@nottherealalanturing
nottherealalanturing merged commit e16539f into dev Jul 13, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant