From 606dbcf40e09300e37d6ab28ff61802e62fd1fdb Mon Sep 17 00:00:00 2001 From: Jason Chuang Date: Sat, 8 Aug 2026 02:53:32 +0800 Subject: [PATCH] remove ldap --- src/auth/index.js | 2 +- src/auth/jwt/jwtService.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth/index.js b/src/auth/index.js index 5776050..06f94af 100644 --- a/src/auth/index.js +++ b/src/auth/index.js @@ -22,7 +22,7 @@ let expiredAlertShownInMemory = false; /** Login / public auth endpoints must not trigger token refresh or session-expiry reload. */ const isPublicAuthRequest = (reqUrl) => - reqUrl.includes('/login') || reqUrl.includes('/ldap-login'); + reqUrl.includes('/login'); /** Clear stale session-expiry flag so a new login attempt can show its own error dialog. */ export const clearExpiredSessionAlert = () => { diff --git a/src/auth/jwt/jwtService.js b/src/auth/jwt/jwtService.js index 884d090..430717a 100644 --- a/src/auth/jwt/jwtService.js +++ b/src/auth/jwt/jwtService.js @@ -46,7 +46,6 @@ export default class JwtService { if (response && response.status === 401) { const isPublicAuthRequest = reqUrl.includes('/login') || - reqUrl.includes('/ldap-login') || reqUrl.includes('/refresh-token') if (isPublicAuthRequest) { return Promise.reject(error)