lib/oauthutil: replace deprecated oauth2.NoContext
This commit is contained in:
parent
4ee3c21a9d
commit
f1d9bd5eab
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ func doConfig(id, name string, m configmap.Mapper, oauthConfig *oauth2.Config, o
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exchange the code for a token
|
// 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 {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to get token")
|
return errors.Wrap(err, "failed to get token")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue