rbac error
added new function to token model