fixes #59. fixes lynndylanhurley/ng-token-auth#59