diff --git a/src/TaxBaik.Web/wwwroot/js/admin-session.js b/src/TaxBaik.Web/wwwroot/js/admin-session.js index 9c6861c..8202056 100644 --- a/src/TaxBaik.Web/wwwroot/js/admin-session.js +++ b/src/TaxBaik.Web/wwwroot/js/admin-session.js @@ -340,10 +340,11 @@ window.taxbaikAdminSession = { localStorage.removeItem('admin-remember-checkbox'); } - // 토큰 저장 후 약간의 지연을 두고 대시보드로 이동 - // 이렇게 하면 CustomAuthenticationStateProvider가 localStorage에서 토큰을 복원할 시간이 생김 + // 토큰 저장 후 현재 페이지 새로고침 + // 이렇게 하면 WASM이 부팅되면서 CustomAuthenticationStateProvider가 localStorage에서 + // 토큰을 복원하고, 그 후 자동으로 인증된 사용자를 대시보드로 리다이렉트함 setTimeout(() => { - window.location.href = '/taxbaik/admin/dashboard'; + window.location.reload(); }, 200); } catch (error) { window.taxbaikAdminSession.traceUiState('admin-login', `submit failed: ${error?.message || 'login failed'}`);