I'm an idiot. Same oversight with updating the token when the user is logged in.

This commit is contained in:
barelyprofessional
2024-09-02 20:50:05 +08:00
parent 85bd4e3b2c
commit 4cb5c0327a

View File

@@ -118,6 +118,7 @@ public class ChatBot
if (await _kfTokenService.IsLoggedIn()) if (await _kfTokenService.IsLoggedIn())
{ {
_logger.Info("We were already logged in and should have a fresh cookie for chat now"); _logger.Info("We were already logged in and should have a fresh cookie for chat now");
KfClient.UpdateToken(_kfTokenService.GetXfSessionCookie()!);
await _kfTokenService.SaveCookies(); await _kfTokenService.SaveCookies();
return; return;
} }