Prisma Adapter not generating Additional Fields for Organization
I had a lot of work with my config auth file, the modelNames work, the aditional fields for user work, but the custom field names and the additional fields are not being generates correctly using the prisma adapter:
1 Reply
Oi @gabrielsuperti☭ ,
For it to work you need to do 2 things:
- add all additional fields to the user table
- add this user object to your authClient with the inferAdditionalFields plugin
example of how I did it:
auth-client.ts
auth-schema.ts
auth-client.ts
qualquer duvida, fique a vontade pra me mandar uma mensagem privada 🙂