forked from go-packages/paypal
Fixed #21
This commit is contained in:
parent
9cee417524
commit
7b764347d0
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user