- What are you trying to achieve? What is the use case or idea behind it?
A previously working (for months) log out has now unusually started to auto log back in when I try and log users out.
- If this is caused by an SDK please mention the SDK along with the specific version number.
“auth0-js”: “8.11.3”,
- Is this easily reproducible? If not, please explain.
Yes - now doing it every time
- If this is related to Lock / any SDK please share the SDK as well as lock initialization code or any code that is relevant.
Using Auth0 hosted login
- If this is an issue with an API please mention the endpoint you are trying to hit. Relevant code, and or a network trace, is really helpful when debugging such issues.
- Environment-specific information (Which OS, Language Runtime + Version, Browser etc).
Could you share a HAR-file (please make sure to remove any sensitive details such as passwords) so that we can inspect what’s going on further?
You can upload it to a cloud storage service of your choice (e.g. Google drive), and share the link with me (via PM) or feel free to restrict access to the link for only @auth0.com email addresses using Sharelock.io.
@james.heggs we are in the process of refactoring our session and state management to enable new features, and a validation done to improve the SSO experience had a bug. Since you were not logging out the user from auth0 (just deleting the state of your app), the user was being logged in automatically because of SSO.
You should be good to go now. Let me know if that is not the case!
If it is a longer term fix – it might be worth taking a look at the React SPA guide and github code with the updates for logging out the session as well.