lib/oauthutil: replace deprecated oauth2.NoContext

This commit is contained in:
Lars Lehtonen 2020-02-06 10:23:45 -08:00 committed by Nick Craig-Wood
parent 4ee3c21a9d
commit f1d9bd5eab

View file

@ -503,7 +503,7 @@ func doConfig(id, name string, m configmap.Mapper, oauthConfig *oauth2.Config, o
}
// Exchange the code for a token
token, err := oauthConfig.Exchange(oauth2.NoContext, auth.Code)
token, err := oauthConfig.Exchange(context.Background(), auth.Code)
if err != nil {
return errors.Wrap(err, "failed to get token")
}