verifyPasswordResetCode = (dispatch, firebase, code) => {
  dispatchLoginError(dispatch, null)
  return firebase
    .auth()
    .verifyPasswordResetCode(code)
    .catch((err) => {
      if (err) {
        dispatchLoginError(dispatch, err)
      }
      return Promise.reject(err)
    })
}
Verify that password reset code is valid
@param {Function} dispatch - Action dispatch function
@param {object} firebase - Internal firebase object
@param {string} code - Password reset code
@returns {Promise} email - Email associated with reset code
@private