I think this patch is a candidate for a quick fix, but additional work would be useful to:
- have the Angular app stop listening to eg.auth messages after it receives the first 'logout' message (then resume once the user has logged in again)
- tighten up the logic around when the AngularJS expired auth handler sends the broadcast message
A patch is available in the branch working/ user/gmcharlt/ lp2034617_ improve_ logout_ handling / https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp2034617_ improve_ logout_ handling
I think this patch is a candidate for a quick fix, but additional work would be useful to:
- have the Angular app stop listening to eg.auth messages after it receives the first 'logout' message (then resume once the user has logged in again)
- tighten up the logic around when the AngularJS expired auth handler sends the broadcast message