mirror of
https://github.com/rclone/rclone.git
synced 2025-06-05 12:36:49 +02: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
|
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…
x
Reference in New Issue
Block a user