In this video I talk through overriding the createUser method in the Prisma adapter for NextAuth.js. This is required when you need to implement custom logic when a user creates an account/signs up.
In our example we needed to set a username and the ID of the user who referred them from a cookie we create.