Log in/Log out and session presistence on client side. Handle and queue unathorized requests to send them after login.