The issue occurs when using an authentication mechanism other than PKI. After a user clicks Log Out, NiFi invalidates the authentication token on the client side but fails to do so on the server side. This allows the client-side token to be used for up to 12 hours after logging out, enabling unauthorized API requests to NiFi.