SpoonX / aurelia-authentication

Authentication plugin for aurelia.
http://aurelia-authentication.spoonx.org
MIT License
90 stars 60 forks source link

Page not reloaded on logout in another tab #379

Closed ShauniArima closed 6 years ago

ShauniArima commented 6 years ago

When the storageChangedReload is set to true in the config file. There is no reload of pages that are opened in other tabs. Is it possible to reload all the tabs on a logout() event?

RWOverdijk commented 6 years ago

@ShauniArima Not that I'm aware of. I know someone did something similar, but I can't remember the outcome.

ShauniArima commented 6 years ago

@RWOverdijk It seems like storage events are not triggered when the logout() remove the key in the storage...

RWOverdijk commented 6 years ago

Interesting. The next click should log the user out though, right?

ShauniArima commented 6 years ago

Yes the logout works fine but the others tabs are not reloaded. The user is redirected to the login page on the next token refresh.

RWOverdijk commented 6 years ago

Hm... If you find an answer to this, please do share.

ShauniArima commented 6 years ago

Yes, I will investigate. Thanks for your help!

doktordirk commented 6 years ago

the fix of https://github.com/SpoonX/aurelia-authentication/issues/327 causes this. the problem here was actually anticipated. maybe we'll find a better fix for #327