The issue is that angular expects an angular Promise that’s why your then will work but your await won’t, you can solve this by using a library like: https://www.npmjs.com/package/angular-async-await or make a construction like they’re demonstrating here https://medium.com/@alSkachkov/using-async-await-function-in-angular-1-5-babel-6-387f7c43948c
Good luck with your problem!