OFDL: Disabled auth file deletion

This commit is contained in:
Casper Sparre 2026-02-17 23:03:36 +01:00
parent 7cedfa37c3
commit 4fd3bcfaa9

View File

@ -198,13 +198,13 @@ public class Program(IServiceProvider serviceProvider)
Log.Error("Auth failed");
authService.CurrentAuth = null;
if (!configService.CurrentConfig.DisableBrowserAuth)
{
if (File.Exists("auth.json"))
{
File.Delete("auth.json");
}
}
//if (!configService.CurrentConfig.DisableBrowserAuth)
//{
// if (File.Exists("auth.json"))
// {
// File.Delete("auth.json");
// }
//}
if (!configService.CurrentConfig.NonInteractiveMode &&
!configService.CurrentConfig.DisableBrowserAuth)
@ -736,11 +736,11 @@ public class Program(IServiceProvider serviceProvider)
else if (File.Exists("auth.json"))
{
Log.Information("Auth file found but could not be deserialized");
if (!configService.CurrentConfig.DisableBrowserAuth)
{
Log.Debug("Deleting auth.json");
File.Delete("auth.json");
}
//if (!configService.CurrentConfig.DisableBrowserAuth)
//{
// Log.Debug("Deleting auth.json");
// File.Delete("auth.json");
//}
if (configService.CurrentConfig.NonInteractiveMode)
{