I am attempting to check the next token in the next
, but I am encountering an error:
TypeError: next.localStorage is not a function
APP.JS
.run(function ($rootScope, $location,$log,User) {
$rootScope.$on("$locationChangeStart", function (event,next, current,jwtHelper) {
if(next.localStorage("id_token")){
console.log("true");
}else{
console.log("false");
}
/*
});