diff --git a/server/auth.go b/server/auth.go index a717d91b..6b2376f2 100644 --- a/server/auth.go +++ b/server/auth.go @@ -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()