Create a User model in Prisma with Clerk on Signup

One of the benefits I find with NextAuth is that it simplifies a lot by adding a User model to Prisma, so that I have each user in my database right at the start.

I'm having some difficulties in finding some documentation to implement this with Clerk. I guess that I need to create some kind of mutation right when the user signs up. But in that case I would need the data (atleast userId) right when the user creates their account (I am using Discord Provider).

Anyone know of some kind of solution to implement this? Do I perhaps need to create some custom authentication with Clerk?
Was this page helpful?