Merge pull request #13972 from rabbitmq/md/clear-auth-session-on-expiry

Clear management auth storage when redirecting to login
This commit is contained in:
Michael Klishin 2025-05-29 09:57:24 +04:00 committed by GitHub
commit 3c4fc996e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1316,7 +1316,8 @@ function update_status(status) {
function with_req(method, path, body, fun) {
if(!has_auth_credentials()) {
// navigate to the login form
// Clear any lingering auth settings in local storage and navigate to the login form.
clear_auth();
location.reload();
return;
}