Firro
BABetter Auth
•Created by Firro on 4/23/2025 in #help
Seeding doesnt work
It crashes because better-auth throws away the id here: https://github.com/better-auth/better-auth/blob/0127426a5e7df4d011e27f510a6e177561f3b618/packages/better-auth/src/adapters/create-adapter/index.ts#L541
20 replies
BABetter Auth
•Created by Firro on 4/18/2025 in #help
How to create headers on the server
Hey, our setup has a gateway in front and that one validated the jwt token I get back from the jwt plugin as passes forward the claims into a custom header. I now also want to provide some admin functionality but at the point where I am getting the request (via GraphQL), the session header is already gone and its unclear to me from the examples how I would f.e. call
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 off3 replies