If user is logged into different browser and resets password in one browser then user needs to logout in all browsers, but it is not happening currently as i am checking the expiration time of token that is cached locally. Is there anyway i can track password change event in my application?
public isAuthenticated(): boolean{
// Check whether the current time is past the
let expiresAt;
if (this.envGlobals.env.authResult) {
expiresAt = JSON.parse(this.envGlobals.env.authResult).expiresAt;
}
return new Date().getTime() < Number(expiresAt);
}