Adding required client_secret credential.

This commit is contained in:
Burcu Dogan
2014-08-13 13:59:53 -07:00
parent 03e5fbeae0
commit de4c4313f9
2 changed files with 23 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ func (c *Config) FetchToken(existing *Token) (*Token, error) {
}
err := c.updateToken(existing, url.Values{
"grant_type": {"refresh_token"},
"client_secret": {c.opts.ClientSecret},
"refresh_token": {existing.RefreshToken},
})
return existing, err