nl_tokens: sign abstract method
pl_tokens: function sign ( input , algorithm , secret ) { const alg = algorithmMap [ algorithm ] if ( ! alg ) { throw new <mask> ( errorMap [ '002' ] . message ) } const type = typeMap [ algorithm ] let signature switch ( type ) { case 'hmac' : signature = hmacSign ( input , alg , secret ) break case 'sign' : signature = rsaSign ( input , alg , secret ) break default : signature = hmacSign ( input , alg , secret ) break } return signature }