From 23acd3ce0151a417d0068c69f3dd2c78b730e2fd Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 21 May 2017 17:00:01 +0100 Subject: [PATCH] oauthutil: Don't expect tokens to have refresh URL --- oauthutil/oauthutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthutil/oauthutil.go b/oauthutil/oauthutil.go index dfd235aa5..a5da620b5 100644 --- a/oauthutil/oauthutil.go +++ b/oauthutil/oauthutil.go @@ -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