forked from TrueCloudLab/rclone
oauthutil: Don't expect tokens to have refresh URL
This commit is contained in:
parent
a2e3af0523
commit
23acd3ce01
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func getToken(name string) (*oauth2.Token, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// if has data then return it
|
// if has data then return it
|
||||||
if token.AccessToken != "" && token.RefreshToken != "" {
|
if token.AccessToken != "" {
|
||||||
return token, nil
|
return token, nil
|
||||||
}
|
}
|
||||||
// otherwise try parsing as oldToken
|
// otherwise try parsing as oldToken
|
||||||
|
|
Loading…
Reference in a new issue