BA
Better Auth•12mo ago
Faris

JWT Not Working

When using this endpoint http://localhost:3000/v1/auth/jwks it returns an error
Cannot read properties of undefined (reading 'findMany') Better Auth

at Object.findMany (node_modules/better-auth/dist/adapters/prisma.cjs:1:1705)
at Object.getAllKeys (node_modules/better-auth/dist/plugins.cjs:2:2216)
at node_modules/better-auth/dist/plugins.cjs:2:2604
at handle (node_modules/better-call/src/endpoint.ts:175:21)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async We.i.<computed> (node_modules/better-auth/dist/chunk-AQ6RPSBI.cjs:83:8535)
at async handler (node_modules/better-call/src/router.ts:116:23)
at async handler (node_modules/better-call/src/router.ts:167:16)
at async <anonymous> (node_modules/better-call/src/adapter/node.ts:10:20)
Cannot read properties of undefined (reading 'findMany') Better Auth

at Object.findMany (node_modules/better-auth/dist/adapters/prisma.cjs:1:1705)
at Object.getAllKeys (node_modules/better-auth/dist/plugins.cjs:2:2216)
at node_modules/better-auth/dist/plugins.cjs:2:2604
at handle (node_modules/better-call/src/endpoint.ts:175:21)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async We.i.<computed> (node_modules/better-auth/dist/chunk-AQ6RPSBI.cjs:83:8535)
at async handler (node_modules/better-call/src/router.ts:116:23)
at async handler (node_modules/better-call/src/router.ts:167:16)
at async <anonymous> (node_modules/better-call/src/adapter/node.ts:10:20)
I have added the table schema to my database
4 Replies
Faris
FarisOP•12mo ago
@bekacru any idea on the error?🥹
bekacru
bekacru•12mo ago
this looks like prisma issue where it couldn't find the model. Make sure it has the right name and you have generated the prisma client. But I'll check in a little bit.
Faris
FarisOP•12mo ago
Yeah it has the right name. Are the encryption keys auto generated and stored in database? If not how can i generate them?
Unknown User
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?