async function someFunction() {
try {
var key = await dec.awsDecrypt('dev-frontend')
return key;
} catch(err) {
}
}
//calling the function
const result = someFunction()
Above I have an asynchronous that returns the value key
. I'm trying to retrieve that value by assigning the function to a variable result
, but when trying I get Promise { <pending> }
as a response. Any suggestions?