Ready to post?
First, try searching for your answer.
Hi Auth0 support team,
We are working on integrating logout in our webapp, but it is not working as expected.
When the user click on login it does not ask for login credentials and automatically logs the user in.
We are using 2 tenants, one for non-production and other for production environment. The issue is on production tenant.
We have also found some difference in the auth0 logs as well. Production tenant logs does not have connection_id, user_id, username and session_id while the non-production tenant has.
Prod log
{
“client_name”: “XXX-user”,
“connection_id”: “”,
“date”: “2025-04-15T13:33:17.192Z”,
“description”: “User successfully logged out”,
“hostname”: “xxx.auth0.com”,
“id”: “90020250415133317342405000000000000001223372073579522255”,
“ip”: “xxx”,
“log_id”: “90020250415133317342405000000000000001223372073579522255”,
“type”: “slo”,
“user_agent”: “Chrome 135.0.0 / Mac OS X 10.15.7”,
“user_id”: “”,
“user_name”: “”
}
Non prod log
{
“client_name”: “XXX-user”,
“connection”: “Username-Password-Authentication”,
“connection_id”: “con_pkZF4EjBAK32Uyrw”,
“date”: “2025-04-15T13:33:02.334Z”,
“description”: “User successfully logged out”,
“details”: {
“session_id”: “Xbez0KJ0Tf4LbD3nQcQBbdqotpm6gwzY”
},
“hostname”: “northstar-artica.us.auth0.com”,
“id”: “90020250415133302549337000000000000001223372073579501967”,
“ip”: “2402:e280:2257:275:7c6a:880:da5f:e9a7”,
“isMobile”: false,
“log_id”: “90020250415133302549337000000000000001223372073579501967”,
“tenant_name”: “northstar-artica”,
“type”: “slo”,
“user_agent”: “Chrome 135.0.0 / Mac OS X 10.15.7”,
“user_id”: “auth0|65cdac21e61e3df46f812f5d”,
“user_name”: “dpathania@artica.com”
}
Hi @platform-admin
Welcome back to the Auth0 Community!
Do you have the same configuration on both the non-production tenant and the production one? It appears that you have not configured the logout correctly inside your application in order to pass in the user information.
Could you please let me know what type of application do you have and the sdk you are using? If you can provide me through a DM both the production and non-production tenant names so I can take a look that would be great.
If you have any other information that would be useful, please leave a reply on the post!
Kind Regards,
Nik
@nik.baleca
The application type is SPA and we are using remix-auth and remix-auth-auth0 library.
I checked the configuration for both and have similar configuration. Is there any specific config which we should be looking at.
Also we tried production tenant config on our non production environment and it was working correctly
Hi again!
As far as I have checked within the tenants, there does not seem to be any settings that would trigger the specified behaviour.
Usually, whenever a session is expired and the user clicks on logout inside the application, the logs would be missing the information that you have posted, however, an user id or email should still be present inside the logs, which does not appear to be the case for the logs inside your production tenant.
I believe there is the chance that you are clearing the application layer session but not the Auth0 one whenever the user initiates the logout. I would recommend to review our documentation regarding sessions and application logouts.
Could you please provide a snipper or code on how you initialize the logout inside your application? You can post it in the same DM thread you provided the tenant names in if you consider that it might contain sensitive information.
Besides the remix-auth library, do you use any of the Auth0 SDKs for your application?
Kind Regards,
Nik
@nik.baleca
I have been clearing both application layer session by destroying the cookies and calling the auth0 logout url (/v2/logout). Also I have DM you the code snippet for logout.