rhys
Explore posts from serversBABetter Auth
•Created by Oleh on 4/22/2025 in #help
Migration Guide from Clerk to Better Auth
Not yet, I suspect it's the sort of thing that's in the works
2 replies
BABetter Auth
•Created by rhys on 4/21/2025 in #help
Cookies amongst multiple tenants, subdomains, and custom domains for a SaaS
Good to know that we have the same problem.
8 replies
BABetter Auth
•Created by rhys on 4/21/2025 in #help
Cookies amongst multiple tenants, subdomains, and custom domains for a SaaS
8 replies
BABetter Auth
•Created by rhys on 4/21/2025 in #help
Cookies amongst multiple tenants, subdomains, and custom domains for a SaaS
8 replies
BABetter Auth
•Created by rhys on 4/21/2025 in #help
Cookies amongst multiple tenants, subdomains, and custom domains for a SaaS
8 replies
BABetter Auth
•Created by rhys on 4/21/2025 in #help
Cookies amongst multiple tenants, subdomains, and custom domains for a SaaS
req headers for sign-up via email:
response headers:
8 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Hot damn! It's at the very least inserted the dummy data in the user table in the db- I get . The account table is empty, but this is well and truly progress.
35 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
If
database
is an object, how do I pass the postgres pool? i.e.
35 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
I think the docs are just a touch out of date,
generateId
has shifted to database
according to the intellisense35 replies
BABetter Auth
•Created by s on 4/12/2025 in #help
guys, is it possible to do with better-aauth??
12 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Ok! That worked too. Now, it's returning
2025-04-13T00:04:21.563Z ERROR [Better Auth]: Failed to create user error: invalid input syntax for type uuid: "b7g00pstBsS5FGSuTitnYGpkIxe2RBzK"
. The id generated by BetterAuth likely doesn't jive with the uuid
PK. I can see the generateId
function that's being called as part of the create user flow is a pretty straightforward wrapper, is there any possibility that this could be extended to allow for uuid use?35 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Thanks so much! I'll give that a shot.
35 replies
BABetter Auth
•Created by s on 4/12/2025 in #help
guys, is it possible to do with better-aauth??
As Nico says, hooks sound like they'd do the trick. Just fyi it's not great manners to ping maintainers directly- they literally just pushed a new release, and are very busy.
12 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Nuts. Is there any way to coerce it? I don't think directus supports it being a Date.
35 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Ahh yeah, you're one hundred percent right, looks like it is a drizzle thing. And updating to the beta has resulted in a fun new error-
Looks like the type is wrong for one of the columns on the users table, but the only two are
date_created
and date_updated
, which are timestamp({ mode: 'string' })
.
35 replies
BABetter Auth
•Created by rhys on 4/12/2025 in #help
Output debug mode?
Of course!
I'm trying to get Better Auth using the existing auth tables for Directus, a headless CMS. Unfortunately, their auth isn't quite as well thought out, and they colocate their account stuff with their user table, which (amongst other things) means that they can't have multiple OAuth providers attached to the same account. So I have manually created the missing account and verification tables, and am remapping the users and sessions tables that already exist.
I'm just trying to get the sign up w/ email working as a proof of concept, but I'm running into the error when I try the
auth.api.signUpEmail()
method.35 replies
BABetter Auth
•Created by rhys on 4/9/2025 in #help
The field "id" does not exist in the "verification" schema
You're absolutely right! Thanks so much.
21 replies
BABetter Auth
•Created by rhys on 4/9/2025 in #help
The field "id" does not exist in the "verification" schema
Ahhh yeah, I can see that. I've removed that, but it's still returning the same issue.
21 replies
BABetter Auth
•Created by rhys on 4/9/2025 in #help
The field "id" does not exist in the "verification" schema
21 replies