An example of how to combine angular and sails with JWT authentication