dennis
dennis
BABetter Auth
Created by dennis on 3/25/2025 in #help
Providing additional fields when signing up via magic link
Hey there, when I sign up via magic link from the client with the code below I'm not able to pass custom / additional user fields (i.e. firstName, lastName). Or do I miss anything? const { error } = await authClient.signIn.magicLink({ email: data.email, callbackURL: returnUrl, name: ${data.firstName} ${data.lastName}, })
5 replies
BABetter Auth
Created by dennis on 3/20/2025 in #help
How to add query parameters to Polar checkout URLs?
Hey there, following https://docs.polar.sh/features/checkout/links#query-parameters you can add parameters like discount_code to the checkout url and have them prefilled in the UI. – That does not seem to work with the Better Auth plugin. Do I miss anything? I've tried: https://localhost:3000/api/auth/checkout/pro-annual?discount_code=X https://localhost:3000/api/auth/checkout/pro-annual?discountCode=X – Without any success.
4 replies