This error comes up sometime --> Invalid user object. It must be an instance of the "User" model #4537
salman3001
started this conversation in
General
Replies: 3 comments 3 replies
-
I had that and updating @adonisjs/auth to latest fixed |
Beta Was this translation helpful? Give feedback.
2 replies
-
The issue comes in HMR mode and we can reproduce it. Will come back with more information soon. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That was indeed a problem with Hot Hook. Please updgrade to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
i just want to discuss regarding this error. "Invalid user object. It must be an instance of the "User" model". it randomly comes up during development when trying to login user. cant reporduce it because it happens only some time. i just restart dev server and it goes away.
this is my auth service
and this is my controller
if anything wrong in my code ?, or it might be a bug ?
Beta Was this translation helpful? Give feedback.
All reactions