From 95c00e5c0de48f8f5736a99813852861f1ab00b3 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 18 Jan 2023 23:15:39 -0600 Subject: [PATCH] asdas --- src/auth/auth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth/auth.go b/src/auth/auth.go index fb1cdc8..3ae5fbf 100644 --- a/src/auth/auth.go +++ b/src/auth/auth.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "log" "net/http" "os" @@ -139,7 +138,7 @@ func completeAuth(w http.ResponseWriter, r *http.Request) { if err != nil { panic(err.Error()) } - err = ioutil.WriteFile(filepath.Join(configDir, "gospt/auth.json"), out, 0o644) + err = os.WriteFile(filepath.Join(configDir, "gospt/auth.json"), out, 0o644) if err != nil { panic("FAILED TO SAVE AUTH") }