'await' has no effect on the type of this expression when using await inside an if block
The issue was, users.create
is not a promise to be awaited! One good way to find this is to click on ctrl + click on the method and check it's type definitions.