'Keycloak-js session not terminated when calling .logout()

I have an issue where the keycloak session is still active after calling .logout() from my angular application keycloak-js.

Is there a way to end the session when calling logout?

Keycloak-js v 7.0.1 Keycloak server: 7.4.4

Initializing Keycloak as below

this.keycloak.init({
   onLoad: 'check-sso',
   checkLoginIframe: false
}

Then logout

this.keycloak.logout({redirectUri: redirectUri});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source