I am building a project using the t3 stack Using app router, TRPC, prisma, and next auth.
With the initial set up and even on documentation, the user model for prisma they give is with an ID, but I need my user model to only have username email password, with username being the primary key.
When I change the prisma Model and make the migrations, And in the configurations for next auth I’m using the credentials provider, And inside of it in the authorize function, it gives me an error because it expects the user To have an ID.
I cannot find anywhere in the documentation or anywhere else. How can I make my authorization work with just username email and password and without an ID.
Anyone have any suggestions?