This commit is contained in:
Aliaksandr Pliutau 2017-01-10 15:39:27 +07:00
parent 9cee417524
commit 7b764347d0

View File

@ -21,7 +21,7 @@ func (c *Client) GrantNewAccessTokenFromAuthCode(code string, redirectURI string
return token, err return token, err
} }
err = c.Send(req, token) err = c.SendWithAuth(req, token)
if err != nil { if err != nil {
return token, err return token, err
} }
@ -44,7 +44,7 @@ func (c *Client) GrantNewAccessTokenFromRefreshToken(refreshToken string) (*Toke
return token, err return token, err
} }
err = c.Send(req, token) err = c.SendWithAuth(req, token)
if err != nil { if err != nil {
return token, err return token, err
} }