How is it possible our users sometimes end up on the "Signed out" screen?
Hello there, most of the times, when
kindeClient.logout() is called, our users end up on the logout_uri defined in createKindeClient (we're using @kinde-oss/kinde-auth-pkce-js)
But some users report ending up in the Signed out screen. Which is a problem for us, as we have an web-app hosted inside a webview and the moment they end up in this screen, it means they cannot "close the window" - only by restarting the app.
- QUICK FIX? Is it possible to have a "close" button added to this screen?
- ROOT CAUSE? Why are they ending up in this screen and not on the defined logout_uri? And what makes it that sometimes they're there and some other times they're not?
Thanks!
3 Replies
Hey @Michal Kučera,
Thanks for the detailed context, that helps.
The reason some users land on the “Signed out” screen instead of your
logout_uri is that the URL isn’t listed under Allowed logout redirect URLs in your app settings. When the logout URL isn’t whitelisted, Kinde falls back to the default signed-out page.
Please add your exact logout URL to that list and let me know how it goes.Thanks for the context!
This is happening in our production app which has the
logout_ui linked with the production app, is there any other variable that might be causing this?Hey @Michal Kučera,
There are a couple of additional things that can cause users to land on the default Kinde signed out screen instead of your defined
logout_uri.
1. URL mismatch:
Even a small difference between the logout_uri in your code or request and the one registered in your Kinde app settings (for example, an extra slash) can cause Kinde to fall back to the default page.
2. Wildcard configuration:
If you are using wildcards in your logout redirect URLs, they need to follow Kinde’s documented rules. Any invalid placement or unsupported pattern can prevent the redirect from being used.
To help narrow this down, could you please confirm:
- Which version of @kinde-oss/kinde-auth-pkce-js you are currently using?
- Whether you have enabled Single Logout in any of your enterprise connections?
These details will help us determine if there is anything else affecting the logout flow.