Change to io module

This commit is contained in:
2024-04-05 08:40:58 -05:00
parent 8d125a5a8a
commit 716b7424c4

View File

@@ -3,7 +3,7 @@ package auth
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io"
"net/http" "net/http"
"strings" "strings"
@@ -91,7 +91,7 @@ func generateToken(
} }
defer resp.Body.Close() defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) body, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
fmt.Println("Error reading response:", err) fmt.Println("Error reading response:", err)
return return