I'm trying to use API Keys feature, however I receive an error saying
apikey
apikey
(all lowercase ) model doesn't exist in Prisma schema, and I have to generate the client again. Re-generating Prisma client isn't helping. The immediate thought was to update
@@map("apikey")
@@map("apikey")
on the Prisma side to be lowercase, but that didn't help either: I have a feeling better-auth codebase references the model by both
apiKey
apiKey
and
apikey
apikey
deep inside, and the incosistency causes the issue.
Also, I was able to find this piece of code in the repo: