Logout option when user is not authorized

I am integrating Node-RED with Keycloak WebSSO for authentication.
I am able to get most of it to work apart from below problem

When I try to login to Node-RED using a user who do not have any permission (Like flows.read, settings.read etc) I get login page again without any error in the UI.
And there is no logout button in the UI as well. So i can not logout and login again with a user who has correct permission.

Are there any settings in editor theme for logout when user is not authorized? (Editor themes logout url option works fine when the user is authorized and authenticated)