Discussions
OAuth 1.0 AuthUrl is generating but woocommerce is returning 401
Hi Folks,
I'm trying to generate an authenticated URL using Consumer Key and Consumer Secret and signature method is HMAC-SHA256 However getting 401 though I've tested in Postman with consumer key and secret, and it is working fine there.
This code is generating the signed URL to request WooCommerce, but somehow WooCommerce return the 401 and says your signature doesn't match
while creating HMAC using crypto.createHmac i'm passing the consumer secret from Netsuite API Secret.
using crypto.createSecretKey method
const WOO_API_URL = config.WOOCOMMERCE.API_URL;const SIGNATURE_METHOD = config.WOOCOMMERCE.SIGNATURE_METHOD;const VERSION = config.WOOCOMMERCE.VERSION || '1.0';