Platon
BABetter Auth
•Created by Platon on 4/17/2025 in #help
Anyway to allow shared emails?
I have a multi-tenant setup, with an extra column "project_id" setup in my schema, with my database itself confining emails to be unique to projects.
Is there any config value I can change to allow sign-ups with existing emails? No matter what I try (so far), I get the error "Sign-up attempt for existing email: ...."
86 replies
BABetter Auth
•Created by Platon on 4/17/2025 in #bug-reports
NextJS trailing slash ignored
Per title, if I set
trailingSlash: true
in my next config, I would expect better-auth to respect those same rules, as currently every request just hits a redirect as better-auth is querying URL's without a trailing slash4 replies
BABetter Auth
•Created by Platon on 4/17/2025 in #help
Anyway to set a non-user input field based on request headers?
I have a database field that needs to be setup on signup, based on request headers. Because this value is handled server side, I've set input to false on this additional field - now I've done that, however, the value from the before hook is entirely ignored.
I can set the field to
input: true
however that makes it settable client side, which of course can be overriten, it just doesn't seem as clean
Any ideas?5 replies
BABetter Auth
•Created by Platon on 4/17/2025 in #bug-reports
Doesn't always respect NextJS basepath
For example, if I set a basePath of '/test', after successfuly logging in I'll be redirected to simply '/', rather than '/'
13 replies