From c59a292719ad574357f96f8e19b65b02a6e135f1 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Sat, 20 May 2017 11:33:06 -0400 Subject: [PATCH] Obtain a refresh token for GCD --- oauthutil/oauthutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthutil/oauthutil.go b/oauthutil/oauthutil.go index edff202d8..dfd235aa5 100644 --- a/oauthutil/oauthutil.go +++ b/oauthutil/oauthutil.go @@ -312,7 +312,7 @@ func Config(id, name string, config *oauth2.Config) error { return err } state := fmt.Sprintf("%x", stateBytes) - authURL := config.AuthCodeURL(state) + authURL := config.AuthCodeURL(state, oauth2.AccessTypeOffline) // Prepare webserver server := authServer{