Unable to set role during signup

"I'm struggling to consistently set user roles during signup with Better Auth, despite trying various hooks and configurations. The adminPlugin and Prisma schema seem to override my intended role assignments. What is the definitive approach to ensure roles are correctly set during signup, considering the interactions between plugins and database defaults?" The only way is to create user with "user" role and hope admin can update it. This is very limiting for a B2B commerce platform. databaseHooks and hooks do not work
1 Reply
4:44
4:442mo ago
You can use the database hooks

Did you find this page helpful?