Closed arj03 closed 2 years ago
If the signature is a base 64 string, is the isObject
the right validation here?
@davegomez the idea is that if you are passing in an object instead of a string, you should rather use verifyObj
. This function works with both string and buffer. It's just that in javascript typeof (buffer) == 'object' ;-)
You can't current use verify if the signature is a buffer. This fixes that problem :)