This the typical approach I take from another thread.
Essentially raise exceptions server side when you find there is no logged in user but there should be.