From e702829758e9620de025c2db71961cf89cd94749 Mon Sep 17 00:00:00 2001 From: Casper Sparre Date: Tue, 17 Feb 2026 23:03:36 +0100 Subject: [PATCH] Disabled auth file deletion --- OF DL/Program.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/OF DL/Program.cs b/OF DL/Program.cs index 6a54546..443c52f 100644 --- a/OF DL/Program.cs +++ b/OF DL/Program.cs @@ -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) {