PrismaClientValidationError
prisma.session.update()
invocation
I am utilizing the latest version of BetterAuth and using the prisma adaptor from better-auth/adaptors/prisma
and my db is postgresql
. I am able to sign up and sign in just fine. However, when the current session needs to be updated, I get the following error. It appears it is trying to use the token for the lookup, but the error seems to indicate the call should be using id instead. My session schema is like this:
```prisma...
Stripe migration does not work
Wierd behaviour, isPending from useSession not triggering
const { data, isPending } = authClient.useSession();
console.log(isPending)
const { data, isPending } = authClient.useSession();
console.log(isPending)
nextJS 15.2
...Custom Admin Role - Admin Plugin
authClient.admin.listUsers
with my custom role, I receive the YOU_ARE_NOT_ALLOWED_TO_LIST_USERS
Error. If I switch that user's role back to the default of 'admin' everything works as expected.
I added screenshots of auth.ts, permissions.ts, and the function used to list users.
Anyone have an idea on what I am doing wrong when creating a custom role?...
Property 'surname' does not exist on type ...
Server side Stripe usage
Kinde to Better-Auth
Custom Auth to Better Auth
Server email OTP authentication
ctx.redirect not working?
Question about Access Control and Orgs
Send session on each request
Phone number sign up doesn’t create a record in the Account table?
How to add query parameters to Polar checkout URLs?
discount_code
to the checkout url and have them prefilled in the UI. – That does not seem to work with the Better Auth plugin. Do I miss anything?
I've tried:
https://localhost:3000/api/auth/checkout/pro-annual?discount_code=X...Custom Fields in Organization Table Not Saving Values
company_size
to my organization schema, but although the field exists in the database, the values I pass are never saved (always null).
Here's my organization plugin config:
```typescript...Change User table primary key name
How to Host better-auth on another Server
Issue with error redirection in case of a custom domain setup
throw c.redirect(${c.context.baseURL}/error?error=state_not_found);
The ideal redirection should be to the client's subdomain. What is the best way to go about this?...Trigger Session update ( to update user data)
additionalFields need defaultValue even for non required field