nl_tokens: abstract verify signature method
pl_tokens: function verify ( input , algorithm , secret , signature ) { const alg = algorithmMap [ algorithm ] if ( ! alg ) { errorMap [ '006' ] . message = 'Algorithm not recognized, signature verification failed' errorMap [ '006' ] . message = new Error ( errorMap [ '006' ] . message ) return false } const type = typeMap [ algorithm ] <mask> ( type ) { case 'hmac' : return hmacVerify ( input , alg , secret , signature ) case 'sign' : return rsaVerify ( input , alg , secret , signature ) default : return hmacVerify ( input , alg , secret , signature ) } }