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