Overriding Prisma Adapter for Next Auth

Опубликовано: 29 Сентябрь 2024
на канале: Ken Greeff
1,674
47

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.