Files
liqa/server/src/auth/auth.error.ts
T
agent 1830feb71b 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.
2026-11-04 17:15:00 -05:00

10 lines
238 B
TypeScript

export type AuthFailureReason =
"disabled" | "invalid-credentials" | "invalid-token";
export class AuthFailure extends Error {
constructor(readonly reason: AuthFailureReason) {
super(reason);
this.name = "AuthFailure";
}
}