Await not working in Freshchat data method

Hi guys!

When I try to fetch user data using the data method in Freshchat using promise ( .then and .catch) it returns values as expected.


However, if I use await to make it synchronous the data is returned as expected and it doesn’t even throw an error.


Can anyone look into it?

Thank you