Nick/Roal
BABetter Auth
•Created by Nick/Roal on 3/31/2025 in #help
activeOrganizationId is null, but user is in Org.

2 replies
BABetter Auth
•Created by Nick/Roal on 1/11/2025 in #help
How to add custom tables to prisma.schema?
I want to extend the prisma.schema file with my own tables. These tables need relations to the users table.
Do I just create my models, add some relations and after that use that https://www.better-auth.com/docs/concepts/typescript#additional-fields?
3 replies
BABetter Auth
•Created by Nick/Roal on 1/10/2025 in #help
auth.api.listUsers returns UNAUTHORIZED but I am admin
Hello,
I have written this function
But the API returns
⨯ [Error [BetterCallAPIError]: API Error: UNAUTHORIZED ] {
status: 'UNAUTHORIZED',
headers: Headers {},
body: [Object],
digest: '3161027971'
}
When I use
auth.api.getSession
I see that my account has role: 'admin'
. What is the Problem?4 replies