resetPassword = (dispatch, firebase, email) => {
  dispatchLoginError(dispatch, null)
  return firebase
    .auth()
    .sendPasswordResetEmail(email)
    .catch((err) => {
      if (err) {
        switch (err.code) {
          case 'auth/user-not-found':
            dispatchLoginError(dispatch, {
              ...err,
              message: 'The specified user account does not exist.'
            })
            break
          default:
            dispatchLoginError(dispatch, err)
        }
        return Promise.reject(err)
      }
    })
}
Send password reset email to provided email
@param {Function} dispatch - Action dispatch function
@param {object} firebase - Internal firebase object
@param {string} email - Email to send recovery email to
@returns {Promise} Resolves after password reset email is sent
@private