I have implemented OKTA login for my application sing-in page. When I tried to login from my application, the login works fine and I’m to do what I wanted. But when I edited my application setting to Either Okta or App from App Only, and tried to login from the okta dashboar, I’m getting this error: Cannot POST /implicit/callback while redirecting.
const oktaConfig = new AuthService({
issuer:'https://{domail}/oauth2/default ',
client_id:'{cliendid}',
redirect_uri:window.location.origin + '/implicit/callback',
pkce:true
});
<Security authService={oktaConfig} key={key} >
<SecureRoute exact path="/protected" component={Protected}/>
<Route path={prop.path} key={key} component={prop.component} />
<Route path="/implicit/callback" component={LoginCallback} />
</Security>
Please help.