© 2026 Hedgehog Software, LLC
user: { additionalFields: { username: { type: "string", required: true, unique: true, }, }, },
const data = await authClient.signIn.social({ provider: "google", callbackURL: "http://localhost:3000/dashboard", });
2025-02-27 23:11:39 2025-02-28T07:11:39.578Z ERROR [Better Auth]: error: null value in column "username" of relation "users" violates not-null constraint 2025-02-27 23:11:39 2025-02-28T07:11:39.578Z ERROR [Better Auth]: unable_to_create_user