What about moving this functionality to the Auth service? The issue with making this a scope variable is that rxApp would also have to have a scope variable added, as rxApp is what add the <rx-logout> tag to the page.