We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basically topic says it all. what have i done so far is that
let user = await auth.getUser(); console.log(user.getRoles()) // user.getRoles is not a function....
but when i do
let user = await User.first(); console.log(user.getRoles())
above works. since it does not work with the auth method, it won't work on protected routes.
im using lucid-mongo
The text was updated successfully, but these errors were encountered:
after digging into the core of the package, I' have found the issue. it's really confusing. When i use
auth.getUser() // this wont get the roles associated to the user
but when i use
User.find() // this returns the roles of the user. ( same user as the auth.getUser() )
Sorry, something went wrong.
No branches or pull requests
basically topic says it all.
what have i done so far is that
but when i do
above works. since it does not work with the auth method, it won't work on protected routes.
im using lucid-mongo
The text was updated successfully, but these errors were encountered: