Admin not authorized
I am trying to list users with the admin plugin but even when my users only role is "admin" I get a 401 from the endpoint. What could I be missing?
Solution:Jump to solution
I fixed it. I had the role imported as a different name because the plugin is named admin. I renamed the plugin import and it started working.
3 Replies
Can you show me how you're calling the method?
@Ping Any insights? I didn't think I was using it wrong. Is there a middleware I need to set on load?
Solution
I fixed it. I had the role imported as a different name because the plugin is named admin. I renamed the plugin import and it started working.