app proxy with offline or online access token

Hi,

I’m using Shopify App Proxy to communicate between my store’s interface and the app I developed to simulate creating a draft order:

router.post(
“/app_proxy/checkout”,
koaBody({ multipart: true }),
async (ctx) => {
let secretKey = process.env.SHOPIFY_API_SECRET;
let shop = ctx.query.shop;
let signature = ctx.query.signature;

const { accessToken } = await loadCustomSession(shop);



}
Everything works fine for me but after 1 day the Shopify access token expires and I get this error:

[API] Invalid API key or access token (unrecognized login or wrong password)
both access mode tokens (online and offline) expire after 1 day. help please?