mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user