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
Cross domain cookie / backend behind cf tunnel
The inferred type of 'authClient' cannot be named without a reference to [email protected]
The inferred type of 'authClient' cannot be named without a reference to '.pnpm/[email protected]/node_modules/undici-types'. This is likely not portable. A type annotation is necessary.
The inferred type of 'authClient' cannot be named without a reference to '.pnpm/[email protected]/node_modules/undici-types'. This is likely not portable. A type annotation is necessary.
Init Drizzle with cloudflare env variables