Api key plugin with Prisma and express server
Hi everyone,
Has anyone gotten the api key plugin working with prisma in a separate express.js server?
i've implemented the ApiKey schema like so:
^
TypeError: Cannot read properties of undefined (reading 'modelName')
````
Has anyone gotten the api key plugin working with prisma in a separate express.js server?
i've implemented the ApiKey schema like so:
But i keep getting this error when i try to create new api key from my client:
````
file:///Users/user/dev/project/repo_name/backend/node_modules/.pnpm/better-auth@1.2.7/node_modules/better-auth/dist/shared/better-auth.rSYJCd3o.mjs:96
return schema[model].modelName !== model ? schema[model].modelName : config.usePlural ? ${model}s` : model;^
TypeError: Cannot read properties of undefined (reading 'modelName')
````