(() => { const { EventManager, actions, CUSTOM_EVENT, utils } = ShopbySkin; const { updateTokenConfig, memberAuth, refreshAuth } = utils; const tokenConfig = { keepDefaultTokenTime: true, }; updateTokenConfig(tokenConfig); document.addEventListener(CUSTOM_EVENT.CALL_COMMON_SHOP_API, async () => { const commonData = await actions.executeCommonAction('PC'); ShopbySkin.platform = 'PC'; EventManager.fire('PAGE_LOAD_COMPLETED', commonData); if (refreshAuth?.keepLogin() || !tokenConfig?.keepDefaultTokenTime) return; const currentAuth = memberAuth.get(); if (!currentAuth) return; memberAuth.set({ value: currentAuth, expires: memberAuth.defaultExpires(), // 엑세스 토큰 기본 유효 기간 }); }); })();