Log signIn/signOut events error via prisma adapter #3910
Unanswered
AeroFiTech
asked this question in
Help
Replies: 0 comments
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.
-
Good day!
I am trying to log the user signIn/signOut event to PScale via the Prisma Adapter, but I encountered an error:
[next-auth][error][SIGN_IN_EVENT_ERROR]
https://next-auth.js.org/errors#sign_in_event_error Cannot read properties of undefined (reading 'create') {
message: "Cannot read properties of undefined (reading 'create')",
stack: "TypeError: Cannot read properties of undefined (reading 'create')\n" +
' at signIn (webpack-internal:///(api)/./pages/api/auth/[...nextauth].js:91:47)\n' +
This is my [...nextAuth].js here on https://pastebin.com/jZjASqqW - It gets messy here when displaying on Github.
Some relevant snippets:
events: {
}
Any pointers here on how do I sync the signIn/signOut event to the database?
Beta Was this translation helpful? Give feedback.
All reactions