fetchOnlineSession = async ({ req, res }) => {
  const sessionID = await shopify.session.getCurrentId({
    isOnline: true,
    rawRequest: req,
    rawResponse: res,
  });
  const session = await sessionHandler.loadSession(sessionID);
  return session;
}
Fetches the online session associated with a request.
@async
@param {Object} params - The request and response objects.
@param {import('next').NextApiRequest} params.req - The Next.js API request object
@param {import('next').NextApiResponse} params.res - The Next.js API response object