Property 'stripeCustomerId' does not exist

Version: ^1.3.7-beta.4
I've loaded better-auth and @better-auth/stripe but keep getting this issue, not sure why...

src/integrations/trpc/routers/user.ts:23:23 - error TS2339: Property 'stripeCustomerId' does not exist on type '{ id: string; email: string; emailVerified: boolean; name: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined; isAnonymous?: boolean | null | undefined; banned: boolean | ... 1 more ... | undefined; role?: string | ... 1 more ... | undefined; banReason?: string | ... 1 more ... | undefined; ...'.

23         if (!ctx.user.stripeCustomerId) {
                         ~~~~~~~~~~~~~~~~

src/integrations/trpc/routers/user.ts:36:32 - error TS2339: Property 'stripeCustomerId' does not exist on type '{ id: string; email: string; emailVerified: boolean; name: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined; isAnonymous?: boolean | null | undefined; banned: boolean | ... 1 more ... | undefined; role?: string | ... 1 more ... | undefined; banReason?: string | ... 1 more ... | undefined; ...'.

36             customer: ctx.user.stripeCustomerId,
                                  ~~~~~~~~~~~~~~~~

src/integrations/trpc/routers/user.ts:60:36 - error TS2339: Property 'stripeCustomerId' does not exist on type '{ id: string; email: string; emailVerified: boolean; name: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined; isAnonymous?: boolean | null | undefined; banned: boolean | ... 1 more ... | undefined; role?: string | ... 1 more ... | undefined; banReason?: string | ... 1 more ... | undefined; ...'.

60         stripeCustomerId: ctx.user.stripeCustomerId,
                                      ~~~~~~~~~~~~~~~~
Was this page helpful?