bitauth
bitauth copied to clipboard
Invalid character in header content ["x-signature"]
hello
i have a problem when i use this method bitauth.sign() , I put it in the request header i have this error :
" TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["x-signature"]"
any help please thanks
@maminebnr were you able to fix this? any update or workaround as I'm facing same issue after generating private key using BitPaySetup script from their nodejs sdk, and token is paired to dashboard
bitauth.sign(data,key) returns an array
convert the array to hex string bitauth.sign(data,key).toString("hex")