maybe fixed auth issue?

This commit is contained in:
Samuel Walker 2025-05-04 13:10:10 -06:00
parent 3df2030f1e
commit 2be1341404
2 changed files with 2 additions and 6 deletions

View File

@ -131,12 +131,8 @@ func (a *App) CheckPrerequisites() {
return
}
}
err = os.Remove(filepath.Join(dir, "FCLauncher", "authentication.json"))
if err != nil {
fmt.Printf("Unable to delete auth file\n")
}
os.MkdirAll(filepath.Join(dir, "FCLauncher"), 0755)
f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR, 0755)
f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0755)
defer f.Close()
data, _ := json.Marshal(a.Auth)
f.Write(data)

View File

@ -1 +1 @@
48cb20b8d107dab0a7876a449352234a
ad9da3c17151b053a4d2fda8e3578901