mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 02:34:40 +08:00
oauthutil: Don't expect tokens to have refresh URL
This commit is contained in:
parent
a2e3af0523
commit
23acd3ce01
|
@ -64,7 +64,7 @@ func getToken(name string) (*oauth2.Token, error) {
|
|||
return nil, err
|
||||
}
|
||||
// if has data then return it
|
||||
if token.AccessToken != "" && token.RefreshToken != "" {
|
||||
if token.AccessToken != "" {
|
||||
return token, nil
|
||||
}
|
||||
// otherwise try parsing as oldToken
|
||||
|
|
Loading…
Reference in New Issue
Block a user