Skip to content

Commit 00e7cad

Browse files
committed
fix(auth): Logout bot after auth flow is complete
1 parent ede86d2 commit 00e7cad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Web/Client/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ const webClient = async (options: OperatorConfig) => {
352352
msg = `${msg}. ${botAddResult.stored === false ? 'Additionally, the bot was not stored in config so the operator will need to add it manually to persist after a restart.' : ''}`;
353353
}
354354
data.addResult = msg;
355+
// @ts-ignore
356+
req.session.destroy();
357+
req.logout();
355358
}
356359
}
357360
return res.render('callback', data);

0 commit comments

Comments
 (0)