Im follow the react-hosted-login sample project here: samples-js-react/okta-hosted-login at master · okta/samples-js-react · GitHub
I created my application in okta like so:
I configured the react-sample appropriately
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',
},
};
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
However, when the login is initiated from okta, I get the following error AuthSdkError: Unable to parse a token from the url
:
What am I doing wrong?