mirror of
https://github.com/rclone/rclone.git
synced 2024-12-26 08:58:58 +01:00
lib/oauthutil: replace deprecated oauth2.NoContext
This commit is contained in:
parent
4ee3c21a9d
commit
f1d9bd5eab
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user