Await is a reserved word error inside async function
In order to use await, the function directly enclosing it needs to be async. According to your comment, adding async to the inner function fixes your issue, so I’ll post that here: Possibly, you could remove the async from the outer function because it does not contain any asynchronous operations, but that would depend on … Read more