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