```
async login({ commit }, { email, password }) {
  let result
  try {
    result = await firebase.auth().signInWithEmailAndPassword(email, password)
    commit('setUser', result.user)
  } catch (err) {
    commit('setError', err)
  }
}

```

This is an action in Vuex. When this runs, I expect the `commit('seteError', err)` to be a valid error handler for the error returned from `catch (err)`. Instead, I get an 'Uncaught' exception and execution stops.

Would appreciate any insights from anyone who managed to use `async` with `firebase.auth()`