PageSourceSearch

https://app.milways.gold/assets/useTokenRefresh-BrhdUOvk.js

js milways.gold collected 2026-10-02 01:54:29 UTC 664 bytes, 1 lines download raw bytes

1import{e as s,g as a,m as e,b as i,A as k,s as h}from"./index-D7S1luVo.js";const c=async()=>{const o=s();if(!o)throw new Error("No auth token available");const n=a(),t=e.subCompanyStore.subCompanyId,r=(await i.post(`${n}${k.AUTH.REFRESH_TOKEN}`,{},{headers:{"Content-Type":"application/json",Authorization:o,"sub-company-id":t}})).data.jwt;if(!r)throw new Error("Token refresh failed: no jwt in response");h(r),e.tokenStore.setToken(r),e.tokenStore.resetTokenExpired()},f=()=>({refreshToken:async()=>{try{return await c(),!0}catch(n){return console.error("Token refresh failed:",n),e.tokenStore.clearTokens(),!1}}});export{c as tokenRefresh,f as useTokenRefresh};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.