···26262727 // set the authed agent
2828 const authedAgent = new Agent(oauthSession);
2929- event.locals.authedAgent = authedAgent;
2929+ if (!event.locals.authedAgent) {
3030+ event.locals.authedAgent = authedAgent;
3131+ }
30323133 // set the authed user with decrypted session DID
3234 const user = await authedAgent.getProfile({ actor: decrypted });