bitauth icon indicating copy to clipboard operation
bitauth copied to clipboard

Invalid character in header content ["x-signature"]

Open maminebnr opened this issue 3 years ago • 2 comments

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 image

maminebnr avatar Oct 21 '21 11:10 maminebnr

@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

svashish305 avatar Jan 12 '22 12:01 svashish305

bitauth.sign(data,key) returns an array

convert the array to hex string bitauth.sign(data,key).toString("hex")

steve-24school avatar Jun 08 '22 10:06 steve-24school