lib/oauthutil: replace deprecated oauth2.NoContext

s3-about
Lars Lehtonen 2020-02-06 10:23:45 -08:00 committed by Nick Craig-Wood
parent 4ee3c21a9d
commit f1d9bd5eab
1 changed files with 1 additions and 1 deletions

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")
}