I’m working on a project where there’ll be multiple SPA applications having okta-hosted login. In those projects there’s a kind of requirement that some of the users of one application might not be having access to the other application.
So, when such users are trying to login to the application to which the user is not assigned to I’m able to display the error page with the error message User is not assigned to the client application. by extending the LoginCallback component. Also having links to Okta dashboard and logout so that the user will be able to navigate to dashboard or user can logout of the application.
So far so good, but the issue that I’m facing is that when trying to logout using authService.logout("/"), I’m getting api/v1/sessions/me 404.
What is the reason that I’m getting 404 and also Is there anyway that I can logout the user?
Below are the project dependencies
- “react”: “^16.13.1”,
- “react-dom”: “^16.13.1”
- “@okta/okta-react”: “^3.0.1”
Thanks in advance.