Commit Graph

6 Commits

Author SHA1 Message Date
7ed05695b9 Separate happy path utility functions for requests 2026-01-17 15:43:52 -06:00
55f5cc699d Add request-scoped context for session.getUser()
Use AsyncLocalStorage to provide request context so services can access
the current user without needing Call passed through every function.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 14:56:10 -06:00
c7b8cd33da Clean up imports 2026-01-10 08:54:34 -06:00
e9ccf6d757 Add PostgreSQL database layer with Kysely and migrations
- Add database.ts with connection pool, Kysely query builder, and migration runner
- Create migrations for users and sessions tables (0001, 0002)
- Implement PostgresAuthStore to replace InMemoryAuthStore
- Wire up database service in services/index.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 09:43:20 -06:00
e136c07928 Add some stub user stuff 2026-01-03 17:06:54 -06:00
39cd93c81e Move services.ts 2026-01-03 14:12:27 -06:00