karandpr / cordova-plugin-android-safetynet

Apache License 2.0
4 stars 2 forks source link

Attest function gives response of encoded string #2

Closed ziwenzhao closed 4 years ago

ziwenzhao commented 5 years ago

The attest function gives back a response of long encoded string (which cannot be decoded by base64) instead of a jws result as expected.

karandpr commented 4 years ago

@ziwenzhao When I created the module , I used npm's jws to decode the string server side.

const jws = require('jws');
let decodedJSON = jws.decode(req.body.jws);

Let me check if something has changed. Cheers !

ziwenzhao commented 4 years ago

Thanks a lot! JWS.decode() works very well. Thank you for your response.

karandpr commented 4 years ago

Nice to hear that ! I will close the issue :)