From 953878e6c6d1b65e5566fcfe4550c321816b84f0 Mon Sep 17 00:00:00 2001 From: barsa Date: Wed, 4 Mar 2026 10:17:32 +0900 Subject: [PATCH] refactor: enhance WHMCS HTTP client and authentication error handling - Improved error logging in WhmcsHttpClientService by simplifying log messages. - Introduced RequestWithCookies type for better type safety in auth controllers. - Refactored ValidatedUser interface for internal consistency. - Streamlined error handling by removing deprecated constants and consolidating token logic. - Enhanced maintainability by removing unused methods in token services. --- apps/bff/src/modules/auth/infra/token/token.constants.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 apps/bff/src/modules/auth/infra/token/token.constants.ts diff --git a/apps/bff/src/modules/auth/infra/token/token.constants.ts b/apps/bff/src/modules/auth/infra/token/token.constants.ts new file mode 100644 index 00000000..26749283 --- /dev/null +++ b/apps/bff/src/modules/auth/infra/token/token.constants.ts @@ -0,0 +1,2 @@ +export const ACCESS_TOKEN_EXPIRY = "15m"; +export const REFRESH_TOKEN_EXPIRY = "7d";