discquist
BABetter Auth
•Created by discquist on 5/20/2025 in #help
Inferred type of betterAuth client exceed compiler serialization
Hi,
Im getting this typescript error in my project. Any suggestion on how to solve it?
`The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.``
15 replies
BABetter Auth
•Created by discquist on 5/13/2025 in #help
Getting auth data in react server component when auth is handled by express backend
is there a good way to be able to call the backend auth from react server component in a project where the auth is implemented using a separate express backend?
3 replies
BABetter Auth
•Created by discquist on 5/12/2025 in #help
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:
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/[email protected]/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')
````5 replies