const data = ecc.sha256(value)
return ecc.signHash(data, key, 'base64'))
Error: dataSha256: 32 byte buffer requred
at Function.push../node_modules/eosjs-ecc/lib/signature.js.Signature.signHash (signature.js:239)
at Object.signHash (api_common.js:136)
at createSign (KeyUtils.ts:27)
at AuthService.ts:12