Can you try these widgets
https://marketplace.mendix.com/link/component/113622
https://marketplace.mendix.com/link/component/118820
Hope this helps.
In your OIDC configuration, you should look for settings related to session management or session timeouts. Microsoft Azure AD, for example, provides session management settings that allow you to control session timeouts.
Configure the OIDC session timeout to match the session timeout setting in your Mendix application. This ensures that the OIDC session and the Mendix session expire at the same time.
In your OIDC configuration, make sure you have configured a proper "Logout Redirect URI." This URI should point to a page or endpoint in your Mendix application that handles the logout process
In your Mendix application, create a microflow or nanoflow that handles the logout process.This flow should perform tasks such as clearing the Mendix session, logging out the user, and possibly sending a request to the OIDC provider's logout endpoint to ensure that the OIDC session is also terminated.
Configure your Mendix application to redirect to the logout process whenever the Mendix session times out