loadSession = async (id) => {
  const sessionResult = await prisma.session.findUnique({ where: { id } });

  if (sessionResult === null) {
    return undefined;
  }
  if (sessionResult.content.length > 0) {
    const sessionObj = JSON.parse(cryption.decrypt(sessionResult.content));
    return new Session(sessionObj);
  }
  return undefined;
}
Loads the session data from the database.

@param {string} id - The session ID.
@returns {Promise<Session|undefined>} Returns the Shopify session object or undefined if not found.