import { getOAuthClient } from "../auth/client"; import { getDID } from "../auth/session"; export const getAgent = async () => { const did = await getDID(); if(!did){ return null; } const client = await getOAuthClient(); const oAuthSession = await client.restore(did); if(!oAuthSession){ return null; } };