Obtain a refresh token for GCD

This commit is contained in:
Steven Lu 2017-05-20 11:33:06 -04:00 committed by Nick Craig-Wood
parent be5b8b8dff
commit c59a292719

View file

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