Magic link verify on a secondary device
Account linking extra info
allowDifferentEmails: true.
it seems like there’s no way to extend the account schema. I think it’s pretty common to have information like the name and email of a newly linked Google account, so that on the client side — when using authClient.listAccounts
— I can display each account’s name, email, or other relevant info.
I tried using the hooks and databaseHooks, but I couldn’t get it to work....plugin schema: onDelete: "cascade" does not work?
manage sessions in server
How to create headers on the server
listOrganizations
or listUsers
on the server by passing in the user.id
that I get back from the already validated token header.
I could query the DB myself, but that kinda feels off...what tables are a must for better auth to work
Is it a possible to use a relation table as type for fields in additionalFields ? (beginner 😅)
pages
field of the user directly from the session (code snippet below). (It's another table).
Is it possible / a good idea to include this kind of data directly in the session (via customSession) or should I rather fetch it separately using a /me
endpoint after login?
I’m not an auth expert, so I’m not 100% sure what the best practice is here – any feedback or guidance would be super appreciated! 🙏...server actions for users
user.actions.ts
file with better-auth. Could anyone please help me out understand?Argument `stripeCustomerId` is missing.
``
2025-04-18T03:02:49.602Z ERROR [Better Auth]: PrismaClientValidationError:
Invalid
prisma.user.create()` invocation:...Get user info
await authClient.admin.listUsers()
but how can I get a single user info? I can't find a method like await authClient.admin.getUser(id)
.user admin type not updating

Prisma + better-auth: schema type issue

Better auth handler not working

How to acces ID token returned by oAuth provider
Better-Auth with Express Server
Property 'signIn' does not exist
set a default redirect URL
Components not visible (BetterAuthUI)

How to use better-auth CLI in a Cloudflare workers + Cloudflare D1 + react-router + drizzle project?
pnpm create cloudflare@latest my-react-router-app --framework=react-router
. I added D1 bindings and drizzle to this project.
The Problem:
I am struggling to find a pattern where I can somehow export auth
in a way the CLI can pick up....sign in stuck loading in deployed app
response
shows redirect = false
but the same is shown locally and the user gets redirected to their profile....