fix: nil pointer dereference

This commit is contained in:
Michael Yang 2023-10-20 16:52:48 -07:00
parent 533d76368c
commit 75bee074b6

View file

@ -106,6 +106,7 @@ func getAuthToken(ctx context.Context, redirData AuthRedirect) (string, error) {
resp, err := makeRequest(ctx, "GET", redirectURL, headers, nil, nil)
if err != nil {
log.Printf("couldn't get token: %q", err)
return "", err
}
defer resp.Body.Close()