Ho Ngoc Hai
54c97daa5b
fix(auth): migrate raw Error throws to DomainException (GOO-52)
Replace 9 raw `throw new Error(...)` instances in the auth module with
typed DomainException subclasses so the GlobalExceptionFilter produces
structured error responses with proper HTTP status codes and error codes.
- zalo-oauth.strategy.ts (4): AUTH_OAUTH_PROVIDER_ERROR / 502
- jwt.strategy.ts (1): AUTH_CONFIG_MISSING / 500
- auth.module.ts (1): AUTH_CONFIG_MISSING / 500
- oauth.service.ts (3): AUTH_ACCOUNT_DISABLED / 403
- Add AUTH_OAUTH_PROVIDER_ERROR, AUTH_CONFIG_MISSING, AUTH_ACCOUNT_DISABLED
to ErrorCode enum
- Update jwt.strategy.spec.ts mock to export DomainException + ErrorCode
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-23 19:58:31 +07:00
..
2026-04-23 19:58:31 +07:00
2026-04-09 01:23:06 +07:00
2026-04-14 14:57:59 +07:00
2026-04-07 23:52:33 +07:00
2026-04-23 10:47:30 +07:00
2026-04-08 13:15:36 +07:00
2026-04-23 10:47:30 +07:00
2026-04-08 00:24:42 +07:00