You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What could cause a hard refresh when a session is invalidated? I would like to prevent a hard refresh from happening, and let my SPA handle the invalidated state.
This is in reference to fenichelar/ember-simple-auth-token#261 where using ember-simple-auth-token causes my app to do a hard refresh when the refresh_token is failing.
It seems to be because invalidationSucceeded is triggered in ember-simple-auth:
What could cause a hard refresh when a session is invalidated? I would like to prevent a hard refresh from happening, and let my SPA handle the invalidated state.
This is in reference to fenichelar/ember-simple-auth-token#261 where using
ember-simple-auth-token
causes my app to do a hard refresh when the refresh_token is failing.It seems to be because
invalidationSucceeded
is triggered inember-simple-auth
:https://github.com/simplabs/ember-simple-auth/blob/0ab8847ed94812c391f66f79c645127abd771f95/addon/internal-session.js#L139-L141
There is an example in the code as to how this might be achieved:
https://github.com/simplabs/ember-simple-auth/blob/d6071274d0cb8e3855e24bf2687c1a6395379440/addon/mixins/application-route-mixin.js#L28-L30
But I am not listening to
invalidationSucceeded
.Why does my app do a hard refresh? How can I prevent it?
The text was updated successfully, but these errors were encountered: