-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Description
Hello,
When having the createCustomerOnSignUp option set to true in auth.ts stripe config like so
createCustomerOnSignUp: truewithin auth.ts
export const createAuth = (
ctx: GenericCtx<DataModel>,
{ optionsOnly } = { optionsOnly: false },
) => {
return betterAuth({
trustedOrigins: ["http://localhost:3000"],
plugins: [
// The Convex plugin is required for Convex compatibility
convex(),
stripe({
createCustomerOnSignUp: true,
stripeClient: stripeClient,
stripeWebhookSecret: "whsec_mywhsecretconfg"
}),
],
});
};
The console (bunx run dev)
11/15/2025, 2:49:55 PM [CONVEX H(GET /api/auth/callback/github)] [LOG] '2025-11-15T20:49:55.811Z INFO [Better Auth]: [Convex Adapter]' '#5 \x1B[40m\x1B[33m[4/4]\x1B[0m' '\x1B[1mcreate\x1B[0m \x1B[2m(Parsed Result)\x1B[0m:' {
model: 'user',
data: {
name: 'Alexander K',
email: 'xxxxx@gmail.com',
emailVerified: true,
image: 'https://avatars.githubusercontent.com/u/xxxxxx',
createdAt: 1763239795775,
updatedAt: 1763239795775,
userId: undefined,
stripeCustomerId: undefined,
id: 'jh7cxtd4zet8swmqmw1vj4xg4n7vemmh'
}
}
11/15/2025, 2:49:55 PM [CONVEX H(GET /api/auth/callback/github)] Uncaught ReferenceError: Buffer is not defineAgain this is on local install to circumvent the convex+better auth plugin restrictions.
Thanks
Metadata
Metadata
Assignees
Labels
No labels