I've build rest api with laravel 5.2, integrating it with angularJS and securing it with jwt.
It's my first experience with jwt, not with angularjs, and in my past projects (with spring mvc/security, angularJS and session instead jwt), i could protect resources by intercepting the url with spring security, like this:
<sec:intercept-url pattern="*/app/**" access="isAuthenticated()" />
Is any way to do this with laravel?, i've already did the javascript validation, so if the jwt token is not valid, the users can't access any route but login, the problem is that javascript source is available either user is logged in or not.