[common/components] chore: 로그인 연장 콘솔 추가(임시)
This commit is contained in:
@@ -117,7 +117,7 @@ function useTokenRemainingMs(enabled: boolean): number {
|
||||
|
||||
const update = () => {
|
||||
const token = getCookie(appConfig.CLAIM_NAME ?? "");
|
||||
setRemainingMs(token ? getRemainingMs(token) : 0);
|
||||
setRemainingMs(token ? getRemainingMs(token, 0) : 0);
|
||||
};
|
||||
|
||||
update();
|
||||
@@ -145,6 +145,10 @@ export function Header({
|
||||
const remainingMs = useTokenRemainingMs(mounted && isLoggedIn && !viewOnly);
|
||||
const siteId = getCookie("site-id-key") ?? "";
|
||||
|
||||
console.log(
|
||||
`/********************* 로그인 만료까지: ${formatRemainingMs(remainingMs)} *********************/`,
|
||||
);
|
||||
|
||||
useSessionExtendConfirm({
|
||||
enabled:
|
||||
mounted &&
|
||||
|
||||
Reference in New Issue
Block a user