ONDC-Official / reference-implementations

ONDC reference apps
MIT License
27 stars 69 forks source link

nodejs - signing & verification should use raw payload instead of formatting #70

Open BLR-0118 opened 5 months ago

BLR-0118 commented 5 months ago

utilities/ondc-crypto-sdk-nodejs/src/utility/index.ts:

  1. createAuthorizationHeader uses JSON.stringify on the raw payload and then signs this formatted payload; this should be removed;
  2. verifyHeader uses JSON.stringify on the raw payload and verifies with this formatted payload; this should be removed;
BLR-0118 commented 5 months ago

@jainneerajnj

robinchauhan2 commented 5 months ago

Hi @BLR-0118 sir, i am already working on it