this repo has no description
at main 17 lines 351 B view raw
1import { getOAuthClient } from "../auth/client"; 2import { getDID } from "../auth/session"; 3 4export const getAgent = async () => { 5 const did = await getDID(); 6 7 if(!did){ 8 return null; 9 } 10 11 const client = await getOAuthClient(); 12 const oAuthSession = await client.restore(did); 13 14 if(!oAuthSession){ 15 return null; 16 } 17};