legal-consent plugin not extending authClient.signUp.email

Hi all!

Just getting to know the plugin ecosystem of better-auth and I must say I am very happy with better-auth so far!

When using the legal-consent plugin I have hit a snag, it doesn't seem like it's extending the auth client properly and thus won't pass the
tosAccepted
and
privacyPolicyAccepted
fields through to the database resulting in DB errors due to a missing field.

I also get the following TS error on the client implementation in the frontend:

Object literal may only specify known properties, and 'tosAccepted' does not exist in type 'Prettify<{ email: string; name: string; password: string; image?: string | undefined; callbackURL?: string | undefined; fetchOptions?: { onRequest: () => void; onSuccess: () => void; onError: (ctx: ErrorContext) => void; } | undefined; }>'.


Does anyone have a reference implementation of this plugin or can anyone confirm that it works?
image.png
Was this page helpful?