bettiolo / oauth-signature-js

JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser
https://www.npmjs.com/package/oauth-signature
BSD 3-Clause "New" or "Revised" License
232 stars 71 forks source link

Custom fields not added into authorization header #28

Open tyteen4a03 opened 7 years ago

tyteen4a03 commented 7 years ago

I was trying to test an access token request and put the oauth_verifier into the field list but the generate authorization header doesn't have this field.

bettiolo commented 7 years ago

@tyteen4a03 The library generates the signature, it does not generate a full header, you should just pass to the API the oauth_verifier header by yourself: https://github.com/bettiolo/oauth-signature-js#example