ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

sessionInvalidated() not causing refresh

Open adambedford opened this issue 5 years ago • 3 comments

I'm seeing a situation where signing out does not trigger a full page refresh. Has anyone else experienced this? I'm on Ember 3.16.

Wondering if this is even browser-related because I've even overridden sessionInvalidated with:

  window.location.reload(true)

and it's not working 🤔

Any help or pointers would be greatly appreciated!

adambedford avatar Mar 23 '20 20:03 adambedford

Are you mixing the ApplicationRouteMixin into the application route?

marcoow avatar Mar 24 '20 08:03 marcoow

I am mixing in ApplicationRouteMixin. The sessionInvalidated() method gets called if I override it, but window.location.reload(true) doesn't seem to do anything.

And if I don't override sessionInvalidated(), nothing happens after the session is invalidated.

adambedford avatar Mar 24 '20 18:03 adambedford

@adambedford is this still a problem? I'd say if window.location.reload(true) doesn't do anything that seems unrelated to ESA. Do you see any errors in the console?

marcoow avatar Aug 19 '20 14:08 marcoow