We have simple application page with custom widget that uses typeahead with http to fetch data. Everything works great as long as session is valid. However typeahead stops showing results (as expected) after 401 but UI remains same.
Browser source changes html page back to login form after 401 but doesn't refresh on its own. As a result user is not informed about invalid session.
Any suggestions how to handle this issue.