title: How to correctly get user information in React/Redux/OIDC
body: <p>Fairly new to OIDC - I've done a bit of work with it in the past, but I wouldn't call myself an expert by any means.</p>
  
  <p>I am trying to use OIDC in a react app using the oidc-client-js and redux-oidc libraries (along with the redux-oidc-example as an example)</p>
  
  <p>I'm getting this error:</p>
  
  <p>Error: No matching state found in storage
      at eval (oidc-client.min.js:1011)</p>
  
  <p>Now I've looked around for a solution to this, and this is the closest I'm seeing to my problem, but I still don't find anything here clearly explaining anything:</p>
  
  <p><a href="https://github.com/IdentityModel/oidc-client-js/issues/648" rel="nofollow noreferrer">https://github.com/IdentityModel/oidc-client-js/issues/648</a></p>
  
  <p>Here's my callback function:</p>
  
  <pre><code>const successCallback = (user) =&gt; {
    this.props.dispatch(push("/settings"))
  };
  
  
  class CallbackPage extends React.Component {
    render() {
      return (
        &lt;CallbackComponent
          userManager={userManager}
          successCallback={successCallback}
          errorCallback={error =&gt; {
            //this.props.dispatch(push("/chat"));
            console.error(error);
          }}
          &gt;
          &lt;div&gt;Redirecting TEST...&lt;/div&gt;
        &lt;/CallbackComponent&gt;
      );
    }
  }
  
  export default connect()(CallbackPage);
  </code></pre>
  
  <p>Before commenting out the props.dispatch in the error callback, it was a never-ending loop. Now it just freezes on the callback page with whatever I put in the error callback.</p>
  
  <p>I won't put my full userManager settings, as that seems like it would be excessive, but here are some of the main highlights:</p>
  
  <pre><code>{
      "authority": "https://subdomain.appname.com/auth/realms/appname/",
      "client_id": "appname-app",
      "redirect_uri": "http://localhost:3001/callback",
      "response_type": "code",
      "extraQueryParams": {"kc_idp_hint": "google"},
      "loadUserInfo": true,
      "scope": ["openid", "profile", "email"]
  }
  </code></pre>
  
  <p>I'm not sure what else would be helpful to anyone troubleshooting it - I can give my store.js information or my main application index.js if needed.</p>