UNPKG

ng-admin.jwt-auth

Version:

Small module that allows to use JWT authentication with ng-admin

8 lines (6 loc) 252 B
var logoutController = function($scope, ngAdminJWTAuthService, $location) { ngAdminJWTAuthService.logout(); $location.path('/login'); }; logoutController.$inject = ['$scope', 'ngAdminJWTAuthService', '$location']; module.exports = logoutController;