refactor(auth): address server review feedback

- Extract auth DTOs, cookie/JWT helpers and the generic duration parser.
- Configure the session cookie and map domain auth failures to HTTP responses.
- Add typed Swagger responses and focused regression coverage.
This commit is contained in:
agent committed 2026-11-04 17:15:00 -05:00
1 parent 72e127888c
commit 1830feb71b
18 files changed
+399 -208

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import request from "supertest";
import { Repository } from "typeorm";
import { filter, firstValueFrom, timeout } from "rxjs";
import { AuthService } from "../src/auth/auth.service";
import { tokenHash } from "../src/auth/auth.service";
import { tokenHash } from "../src/auth/jwt.helpers";
import { PasswordService } from "../src/auth/password.service";
import { RevokedTokenEntity } from "../src/auth/revoked-token.entity";
import { EnvironmentService } from "../src/environment/environment.service";