import { H3Event, EventHandlerRequest } from "h3"; import { apiRoot } from "./constants"; export default async function (id: number): Promise { let { data: lookup } = await useFetch( `${apiRoot}/session-sharing/lookup`, { method: "get", query: { params: { id, }, }, }, ); return lookup.value.uid as number; }