Got error while signin

Hello these are the packages I am using 1. Trpc 2. Next Auth 3. Drizzle 4. PostgreSQL Env's are working fine for me Supabase for postgres data, discord client and secret Auth error I am receiving: https://next-auth.js.org/errors#adapter_error_createuser null value in column "id" of relation "test_user" violates not-null constraint { message: 'null value in column "id" of relation "test_user" violates not-null constraint', stack: 'PostgresError: null value in column "id" of relation "test_user" violates not-null constraint\n' + ' at ErrorResponse (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:803:66)\n' + ' at handle (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:489:6)\n' + ' at Socket.data (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:330:9)\n' + ' at Socket.emit (node:events:518:28)\n' + ' at addChunk (node:internal/streams/readable:559:12)\n' + ' at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n' + ' at Readable.push (node:internal/streams/readable:390:5)\n' + ' at TCP.onStreamRead (node:internal/stream_base_commons:190:23)\n' + ' at TCP.callbackTrampoline (node:internal/async_hooks:130:17)', name: 'PostgresError' }
Errors | NextAuth.js
This is a list of errors output from NextAuth.js.
4 Replies
FleetAdmiralJakob 🗕 🗗 🗙
Can you show some of your code?
Harshlions
HarshlionsOP•6mo ago
sure
Harshlions
HarshlionsOP•6mo ago
auth.ts file
Harshlions
HarshlionsOP•6mo ago
@FleetAdmiralJakob 🗕 🗗 🗙
Want results from more Discord servers?
Add your server