{"action":"created","issue":{"url":"https://api.github.com/repos/okta/okta-oidc-js/issues/337","repository_url":"https://api.github.com/repos/okta/okta-oidc-js","labels_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/337/comments","events_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/337/events","html_url":"https://github.com/okta/okta-oidc-js/issues/337","id":372684824,"node_id":"MDU6SXNzdWUzNzI2ODQ4MjQ=","number":337,"title":"okta-react AuthApiError when redirected to /implicit/callback","user":{"login":"Steague","id":909053,"node_id":"MDQ6VXNlcjkwOTA1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/909053?v=4","gravatar_id":"","url":"https://api.github.com/users/Steague","html_url":"https://github.com/Steague","followers_url":"https://api.github.com/users/Steague/followers","following_url":"https://api.github.com/users/Steague/following{/other_user}","gists_url":"https://api.github.com/users/Steague/gists{/gist_id}","starred_url":"https://api.github.com/users/Steague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Steague/subscriptions","organizations_url":"https://api.github.com/users/Steague/orgs","repos_url":"https://api.github.com/users/Steague/repos","events_url":"https://api.github.com/users/Steague/events{/privacy}","received_events_url":"https://api.github.com/users/Steague/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-22T20:25:30Z","updated_at":"2018-10-30T19:52:49Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease help us process GitHub Issues faster by providing the following information.\r\n\r\nNote: If you have a question, please post it on the Okta Developer Forum (https://devforum.okta.com) instead. Issues in this repository are reserved for bug reports and feature requests.\r\n-->\r\n\r\n## I'm submitting this issue for the package(s):\r\n\r\n- [ ] jwt-verifier\r\n- [ ] okta-angular\r\n- [ ] oidc-middleware\r\n- [X] okta-react\r\n- [ ] okta-react-native\r\n- [ ] okta-vue\r\n\r\n## I'm submitting a:\r\n\r\n- [X] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n- [ ] Feature request\r\n- [ ] Other (Describe below)\r\n\r\n## Current behavior\r\n<!-- Describe how the issue manifests. -->\r\nWhen logging in, Okta redirects the user back to [url]/implicit/callback with the token info attached to the URI. When that happens, the user is the redirected again to /implicit/callback without the token and `AuthApiError` is shown.\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\nLogin works as normal and the token is stored correctly in localStorage.\r\n\r\n## Minimal reproduction of the problem with instructions\r\n<!--\r\nFor bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem.\r\nYou could use one of our sample applications to build a reproduction demo: https://github.com/okta?q=samples-js\r\n-->\r\nI am unable to provide a demo due to this only happening after being deployed. (I cannot reproduce the issue locally even if I build the app locally)\r\n\r\n## Extra information about the use case/user story you are trying to implement\r\n<!-- Describe the motivation or the concrete use case. -->\r\nMy local development toolchain consists of two node instances running. The first instance is the UI (which contains the okta-react package). The second Node instance is the backend (services stack).\r\n\r\nThe UI is based in Create-React-App and is built using react-scripts (Webpack derivative)\r\nThe backend is plain old Node/express that is packed with traditional Webpack.\r\n\r\nRunning okta-react@1.0.2 works as expected but has issues regarding paths within the UI router that have been fixed by 1.1.3. The only thing changed is okta-react to v1.1.3 (and any deps that it needs) and then the error happens.\r\n\r\n## Environment\r\n\r\n- Package Version: 1.1.3\r\n- Browser: Chrome\r\n- OS: MacOS and Windows\r\n- Node version (`node -v`): 8.11.2\r\n- Other:\r\n"},"comment":{"url":"https://api.github.com/repos/okta/okta-oidc-js/issues/comments/434445314","html_url":"https://github.com/okta/okta-oidc-js/issues/337#issuecomment-434445314","issue_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/337","id":434445314,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDQ0NTMxNA==","user":{"login":"bartimaeus","id":403832,"node_id":"MDQ6VXNlcjQwMzgzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/403832?v=4","gravatar_id":"","url":"https://api.github.com/users/bartimaeus","html_url":"https://github.com/bartimaeus","followers_url":"https://api.github.com/users/bartimaeus/followers","following_url":"https://api.github.com/users/bartimaeus/following{/other_user}","gists_url":"https://api.github.com/users/bartimaeus/gists{/gist_id}","starred_url":"https://api.github.com/users/bartimaeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartimaeus/subscriptions","organizations_url":"https://api.github.com/users/bartimaeus/orgs","repos_url":"https://api.github.com/users/bartimaeus/repos","events_url":"https://api.github.com/users/bartimaeus/events{/privacy}","received_events_url":"https://api.github.com/users/bartimaeus/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T19:52:49Z","updated_at":"2018-10-30T19:52:49Z","author_association":"NONE","body":"@Steague that is interesting that your `exact` property isn't working correctly. I  am not running into that issue.\r\n\r\nI was able to track down my issue. I had updated **@okta/okta-auth-js** to `2.0.1` however **@okta/okta-signin-widget** depends on **@okta/okta-auth-js:1.17.0**. After reverting my okta-auth-js commit everything worked again as expected. The other issue is that **@okta/okta-react:1.1.1+** updated the **@okta/okta-auth-js** dependency to `2.0.1` as well.\r\n\r\nMy final locked versions are:\r\n\r\n```\r\n\"@okta/okta-auth-js\": \"^1.17.0\",\r\n\"@okta/okta-react\": \"^1.0.2\",\r\n\"@okta/okta-signin-widget\": \"^2.13.0\",\r\n```\r\n\r\nMy routes are setup as follows:\r\n\r\n```\r\n<Fragment>\r\n  <UpdateNotification />\r\n  <Provider store={store}>\r\n    <Router>\r\n      <Security\r\n        issuer={issuer}\r\n        client_id={clientId}\r\n        redirect_uri={redirectUri}\r\n        onAuthRequired={onAuthRequired}\r\n      >\r\n        {process.env.REACT_APP_GOOGLE_ANALYTICS_ID && (\r\n          <Route component={GoogleAnalytics} />\r\n        )}\r\n        <Switch>\r\n          <SecureRoute exact path=\"/\" component={AuthenticatedLayout} />\r\n          <Route path=\"/login\" component={PublicLayout} />\r\n          <Route path=\"/register\" component={PublicLayout} />\r\n          <Route path=\"/implicit/callback\" component={ImplicitCallback} />\r\n          <SecureRoute path=\"/*\" component={AuthenticatedLayout} />\r\n        </Switch>\r\n      </Security>\r\n    </Router>\r\n  </Provider>\r\n</Fragment>\r\n```"}}
{"actor":{"display_login":"bartimaeus"}}