@aquarela/hmac-signer
v1.0.3
Published
Sign HMAC token
Downloads
3
Readme
USE
const { Hmac } = require('@aquarela/hmac-signer')
const token = new Hmac()
const resultToken = token.sign({ secret: '', body: { test: 'testvalue' } })
resultToken.then((result) => {
console.log(result)
})
// {
// success: true,
// hash: 'RTGKAYlux7CYEqJOOwR89lvwN1/rpb+kYJ7yyt0QGW6TD+7ylJQuBieo5OchlrvxVZfKw8IcXJrH7ZdneN7dsA=='
// }