node-oauth-1.0a-ts
v4.0.5
Published
OAuth 1.0a Request Authorization for Node and Browser.
Downloads
2,570
Maintainers
Readme
node-oauth-1.0a
OAuth 1.0a Request Authorization for Node and Browser
Send OAuth request with your favorite HTTP client (request, jQuery.ajax...) or fetch)
Breaking change
- v3.0.0
- Crypto library changed to node's
crypto
- Crypto library changed to node's
- v2.0.0
- A bug has been discovered in
authorize
. As it no longer mutate input, the input string no longer get escaped correctly per OAuth spec. To remedy this:- If you build POST body yourself, use the
buildQueryString
method instead ofquerystring.encode
. - Otherwise, make sure that your parameters are encoded with
percentEncode
instead ofencodeURIComponent
. It is available atrequire('node-oauth-1.0a/src/utils').percentEncode
.
- If you build POST body yourself, use the
- A bug has been discovered in
Difference to oauth-1.0a
- The code is broken down to multiple files and rewritten to a subset of ES6.
- When node and evergreen browsers starts shipping full ES6 support it is expected that the code will change to full ES6.
- Use libraries instead of shipping with some common algorithms.
- Large parts of the API are made private
- The public API should be compatible with some changes
- The constructor must be called with
new
. authorize
and its inner methods no longer mutate input.getHeader
with the same signature asauthorize
is added.toHeader
is deprecated
- The constructor must be called with