Auth.js (next-auth) with Drizzle Provider Typescript
Hello so in the guide for the drizzle provider for Auth.js (next-auth) it says we can override the tables
for example if i want to give me my users table a password and role field
but then i run into a typescript error since the tables are typed in a specific way inside the adapter itself
3 Replies
currently I am overriding the specific functions of the adapter as needed (although i should probably override all of them to keep it consistent)
Currently you have to define all 4 tables. There is a PR so that you only need to define the user and account tables, but it hasn't been merged/released yet.
There is a discussion about it on the Auth.js server.
https://discord.gg/7vQCDXdd9h
Here is the thread: https://discord.com/channels/1200116961590399008/1231534836859146241
Ahh that's not too bad at least for my case I'm just setting it to themselves basically, at least it's more consistent then me overriding the functions