title: React-js error undefined "type" property
body: <p>I want to logout the user immediately after login , so I could see in redux if It works and I get this error: <em>Uncaught Error: Actions may not have an undefined "type" property. Have you misspelled a constant?</em></p>
  
  <p>I should get AUTH_LOGOUT action in my redux after the success- <a href="https://i.stack.imgur.com/6eNXb.png" rel="nofollow noreferrer">example image</a>.
  As I understand the error Is in the checkAuthTimeout:</p>
  
  <pre><code>export const checkAuthTimeout = (expirationTime) =&gt; {
  return dispatch =&gt; {    
      setTimeout(() =&gt; {
          dispatch(logout())
      }, expirationTime )
  }}
  </code></pre>
  
  <p>My logout:</p>
  
  <pre><code>export const logout = () =&gt; {
  return {
      type: actionTypes.AUTH_LOGOUT
  }}
  </code></pre>
  
  <p>And auth:</p>
  
  <pre><code>export const auth = (email, password) =&gt; {
  return dispatch =&gt; {
      dispatch(authStart());
      const authData = {
          email:email,
          password:password,
          returnSecureToken: true
      }
      axios.post('https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=AIzaSyCpqBy-KjAJWCMUYLHVWAIu_HWZd3yzHVE', authData)
          .then(response =&gt; {
              console.log(response);
              dispatch(authSuccess(response.data.idToken, response.data.localId));
              dispatch(checkAuthTimeout(response.data.expiresIn));
          })
          .catch(err =&gt; {
              dispatch(authFail(err.response.data.error));
          });
  }}
  </code></pre>