Token based authentication module for angular.js.