No description
Find a file
Yisroel Baum 9ca58f3a9d
merge user-and-auth-domains
phase 2: User + Auth foundations.

User domain: entity (id, email, passwordHash, isAdmin), dto,
repository interface, eloquent + fake impls, users migration,
SignupUser use case (validates email, length, uniqueness; hashes
password; isAdmin always false on signup).

Auth domain: Clock + TokenGenerator + PasswordHasher utility
interfaces with system + bcrypt + random impls and matching
fakes. Session entity + dto + repository interface, eloquent +
fake impls, sessions migration (token primary, fk user_id
cascade, expires_at indexed). AuthenticateUser, CreateSession,
Logout use cases. AuthMiddleware reads auth_token cookie and
attaches User to request attributes.

bindings wired in AppServiceProvider + new
RepositoryServiceProvider.

37 tests, 59 assertions; stan + cs clean.
2026-05-06 15:18:23 +03:00
ai init: agent context files 2026-05-06 14:37:39 +03:00
backend wire repository and utility bindings 2026-05-06 15:18:06 +03:00
.envrc add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00
.gitignore harden devshell: anchor pgdata to repo root, broaden gitignore 2026-05-06 14:58:27 +03:00
AGENTS.md init: agent context files 2026-05-06 14:37:39 +03:00
flake.lock add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00
flake.nix harden devshell: anchor pgdata to repo root, broaden gitignore 2026-05-06 14:58:27 +03:00
process-compose.yaml add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00