From 7b764347d085ea9d1cb6234f07ccb671d9351add Mon Sep 17 00:00:00 2001 From: Aliaksandr Pliutau Date: Tue, 10 Jan 2017 15:39:27 +0700 Subject: [PATCH] Fixed #21 --- identity.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/identity.go b/identity.go index 9d21885..de6a591 100644 --- a/identity.go +++ b/identity.go @@ -21,7 +21,7 @@ func (c *Client) GrantNewAccessTokenFromAuthCode(code string, redirectURI string return token, err } - err = c.Send(req, token) + err = c.SendWithAuth(req, token) if err != nil { return token, err } @@ -44,7 +44,7 @@ func (c *Client) GrantNewAccessTokenFromRefreshToken(refreshToken string) (*Toke return token, err } - err = c.Send(req, token) + err = c.SendWithAuth(req, token) if err != nil { return token, err }