truecaller / backend-sdk-validation

5 stars 16 forks source link

Correct public key url and added crypto package require #2

Closed ozym4nd145 closed 5 years ago

ozym4nd145 commented 6 years ago

The previous http url is not working, so changed it to https. Also, I was getting Reference Error if crypto package was not imported. So, explicitly importing crypto package fixed that error.

In addition, the payload received in the API request does not contain keys like isSimChanged and verificationTimestamp which are present in the profile object. This causes function _verifyPayload to fail unnecessarily.