Closed afrancht closed 4 years ago
Instead of promises can we use the async await syntax with argon2-browser?
async await
Hi! Indeed you can, it's a normal promise, without any hacks.
(async function() { const hash = await argon2.hash({ pass: 'p@ssw0rd', salt: 'somesalt' }); console.log(hash.encoded); })();
Instead of promises can we use the
async await
syntax with argon2-browser?