Functions are not usable

I created a function in my workflow, but there doesn't seem to be a way to call that function.
I have a function called createHmac with 2 arguments. I created a code block that needs this function. I can only get an object of createHmac. When I try to use it as a function by passing two arguments to the function, I get the following error:
Promise object could not be cloned.

var authorization = createHmac('get', '/mysqldatabases');
return {authorization: authorization}

Hey Tom,

This should be a simple fix.
When using functions you need to await their response in order for them to work.
image

var authorization = await createHmac('get', '/mysqldatabases');
return {authorization: authorization}