add vulnchatters command and add comments

This commit is contained in:
2025-06-24 20:14:45 +02:00
parent dcfb013447
commit 5728440fcd
6 changed files with 44 additions and 8 deletions

View File

@@ -38,12 +38,12 @@ async function initAuth(userId: string, clientId: string, clientSecret: string,
await deleteAuthRecord(userId);
const code = await codepromise;
await server.stop(false);
await server.stop(true);
console.info(`Authentication code received.`);
const tokenData = await exchangeCode(clientId, clientSecret, code, redirectURL);
console.info(`Successfully authenticated code.`);
await createAuthRecord(tokenData, userId);
console.info(`Successfully saved auth data in the database.`)
console.info(`Successfully saved auth data in the database.`);
return tokenData;
};