1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-24 12:56:36 +02:00

oauthutil: Don't expect tokens to have refresh URL

This commit is contained in:
Nick Craig-Wood 2017-05-21 17:00:01 +01:00
parent a2e3af0523
commit 23acd3ce01

View File

@ -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