ng-token-auth
ng-token-auth copied to clipboard
$auth.validateUser() for different user types
I am working with devise-token-auth
along with ng-token-auth
. I have users
and admins
and have certain pages where I want to validate admins
only however when i run $auth.validateUser()
all users successfully get validated. Is there a way to validate different types of users?