title: OpenID Okta initiated login `AuthSdkError: Unable to parse a token from the url`
body: <p>Im follow the react-hosted-login sample project here: <a href="https://github.com/okta/samples-js-react/tree/master/okta-hosted-login" rel="noreferrer">https://github.com/okta/samples-js-react/tree/master/okta-hosted-login</a></p>
  
  <p>I created my application in okta like so:
  <a href="https://i.stack.imgur.com/X1BCn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/X1BCn.png" alt="Okta application configuration"></a></p>
  
  <p>I configured the react-sample appropriately</p>
  
  <pre><code>export default {
    oidc: {
      clientId: '0oaewvbvbyZdmYZb60h7',
      issuer: 'https://dev-572586.oktapreview.com/oauth2/default',
      redirectUri: 'http://localhost:8080/implicit/callback',
      scope: 'openid profile email',
    },
    resourceServer: {
      messagesUrl: 'http://localhost:8000/api/messages',
    },
  };
  </code></pre>
  
  <p>When I run the app, I can successfully login when I click the login button in the react app. i.e It takes me to my okta sign-in page and redirects back with the access token and all that stuff</p>
  
  <p>However, when the login is initiated from okta, I get the following error <code>AuthSdkError: Unable to parse a token from the url</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/aivcH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aivcH.png" alt="Error in SPA"></a></p>
  
  <p>What am I doing wrong?</p>