You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My error was in the auth: {role: 1, redirect: {name: 'login'}, forbiddenRedirect: '/administrador'}
it was roles as a standard property, not as the name of the property of the object auth: {roles: 1, redirect: {name: 'login'}, forbiddenRedirect: '/administrador'}
Thanks both for the response and this great package.
Hi, currently I'm using the "@websanova/vue-auth": "^2.21.10-beta" for login and I'm trying to make it filter access through roles.
The issue that I have currently is that my user object has a role attribute that is not read by the rolesKey correctly.
Here is the $auth.user()
using the next configuration :
The problem is that I when I use the check Method, this are the results:
I would love to know if I need to make the role an object or if I should use a string.
The text was updated successfully, but these errors were encountered: