Error with custom field mapping. whereClause id getting undefined value
I'm migrating from Auth0 to better-auth.
In my existing project users table called
Here is my config:
The OTP code is generating succesfuly:
And here is the db record that I'm getting in verifications table: (see screenshot)
Now when I submit the code I'm getting an error
When I console log the whereClause, here is what I see.
Please advice
In my existing project users table called
UsersView (don't ask). And the primary key is userId (instead of just id)Here is my config:
The OTP code is generating succesfuly:
And here is the db record that I'm getting in verifications table: (see screenshot)
Now when I submit the code I'm getting an error
When I console log the whereClause, here is what I see.
Please advice
