Duki
BABetter Auth
•Created by Duki on 4/28/2025 in #help
Is it possible to let the user set up multiple devices for 2FA using TOTP?
I see that the DB schema has a 1 to many relation to the user, meaning one user can have multiple twoFactors.
Does it mean that a user can have multiple TOTPs set up?
If so, how can I add an other TOTP and how can they be differentiated from one an other?
2 replies
BABetter Auth
•Created by Duki on 4/25/2025 in #bug-reports
Cannot cancel a trailing subscription
I'm trying to cancel a trialing subscription, by passing the subscription id in cancel function, but I receive a 400 response saying that the subscription cannot be found, but when I check my DB it is definitely there and the subscription Id matches. Am I supposed to cancel trials differently than active subscriptions?
2 replies
BABetter Auth
•Created by Duki on 4/25/2025 in #help
Stripe customer portal "select certificate" alerts popping up multiple times
I'm wondering if anyone else has this issue during local development.
When I call BA's cancel subscription function and redirect the user to stripe's customer portal I receive a lot of alerts asking me to select a certificate.
Where does it come from?
Am I the only one experiencing this?
How can I get rid of this?
Will it show in prod too?
2 replies
BABetter Auth
•Created by Duki on 4/20/2025 in #bug-reports
change email does not update the customer's email in stripe
When executing an email change, the new email is not updated in the stripe's customer table in the dashboard. Is that something that is meant to be done manually? I would have expected BA to check if there is a customer Id set on that user and if so, trigger the change in stripe as well. Question is just, should it happen right after the change requested got accepted by the user (from the
sendChangeEmailVerification
email) or after the new email got verified. That could maybe depend on the requireEmailVerification
flag I guess5 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
Hey, I'm having a new issue where updating the user's
stripeCustomerId
automatically on signup, gives me a prisma error. I found an other thread here where the issue was the schema not having stripeCustomerId
set as optional, but my schema does. Has anyone else had this issue?13 replies
BABetter Auth
•Created by Duki on 4/15/2025 in #help
[Better Auth]: Couldn't read your auth config. Error: Cannot find module '$app/paths'
Has anyone else had this issue (see title) when running the
npx @better-auth/cli generate
cli command on SvelteKit? I can't figure out how to fix this issue.7 replies
BABetter Auth
•Created by Duki on 3/8/2025 in #help
Session isn't updated after changing email of a user with an unverified email

36 replies
BABetter Auth
•Created by Duki on 2/28/2025 in #help
Is it possible to set callbackUrl on server-side email sign Ups?
I would like to handle my sign ups on the server side, but I'm struggling to find a proper way to set my callbackUrl in the documentation for the email verification.
Tried it like this, but this doesn't seem to work
How can I set it properly? Or do I have to add it manually in auth.ts?
12 replies