Skip to content

Commit

Permalink
Revert io.ReadAll to ioutil.ReadAll
Browse files Browse the repository at this point in the history
  • Loading branch information
vademecumuk committed Dec 24, 2022
1 parent 6262a0a commit 6777640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/cognito/cognito.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/markbates/goth"
"golang.org/x/oauth2"
"io"
"io/ioutil"
"net/http"
)

Expand Down Expand Up @@ -126,7 +127,7 @@ func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
return user, fmt.Errorf("%s responded with a %d trying to fetch user information", p.providerName, response.StatusCode)
}

bits, err := io.ReadAll(response.Body)
bits, err := ioutil.ReadAll(response.Body)
if err != nil {
return user, err
}
Expand Down

0 comments on commit 6777640

Please sign in to comment.