verifyCredentials: wait up to 5 seconds

This commit is contained in:
Alex Gleason 2024-05-18 23:02:59 -05:00
parent 3d93be6a13
commit 5523c3fc0e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const createAccountController: AppController = async (c) => {
const verifyCredentialsController: AppController = async (c) => {
const pubkey = await c.get('signer')?.getPublicKey()!;
const event = await getAuthor(pubkey, { relations: ['author_stats'] });
const event = await getAuthor(pubkey, { signal: AbortSignal.timeout(5000) });
if (event) {
return c.json(await renderAccount(event, { withSource: true }));
} else {