I created a lovelace logout button to navigate to this URL:
http://[your home assistant ip:port]/auth/authorize?response_type=code&client_id=[your home assistant ip:port]/&redirect_uri=[your home assistant ip:port]
As stated by the user khara in this topic:
works great!