Switch to angular-ui-router, and handle auth state