See more
If you don’t play nice with .then() you can use async/await together with try/catch like that 👇.
.then()
async/await
try/catch