I have created two models User and Admin
I have implemented the authentication for both of these models.
On routes, I have put
Route.get("user/secure", "UserController.showSecret").middleware([ "auth:user" ]);
Route.get("/secure", "AdminController.showSecret").middleware([ "auth:admin" ]);
This seems to work fine. However, when I create both user and admin. With the same id, the model gets flipped. If I am logged in as a user, and I enter the admin route, the auth instance is flipped with that of admin instead of restricting me.