loging the stack; "payload" argument must be of type object.

I am unable to register new users with my better auth/prisma NextJS app. When a user submits valid credentials, I get this error:

2025-02-20T20:33:11.442Z ERROR [Better Auth]: TypeError [TypeError: The "payload" argument must be of type object. Received null] {
  code: 'ERR_INVALID_ARG_TYPE'
}


Ideally we would have access to log the error .stack, is there a way to do this ?
Was this page helpful?