1
0
forked from baron/baron-sso

SSO 로그인 방식을 팝업 기반으로 변경

This commit is contained in:
2026-02-25 09:09:18 +09:00
parent 19f5096470
commit 3423178250
4 changed files with 20 additions and 5 deletions

View File

@@ -30,8 +30,9 @@ apiClient.interceptors.response.use(
if (error.response?.status === 401) {
// 401 발생 시 로그인 페이지로 리다이렉트
const isAuthPath = window.location.pathname.startsWith("/callback");
if (!isAuthPath) {
userManager.signinRedirect();
const isLoginPath = window.location.pathname === "/login";
if (!isAuthPath && !isLoginPath) {
window.location.href = "/login";
}
}
return Promise.reject(error);