Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
All posts for Better Auth
Website is not available
Starting v1.2.6 `database.generateId = false` still inserts Id into the verification table
NextJS trailing slash ignored
Doesn't always respect NextJS basepath
member.createdAt has wrong timezone
Email Verification required and Captcha return the same error code
Passkeys & verification Model, expiresAt always in past
Session Not Updating & Expired session continues to be active
Session info isn't available fast enough on manual page reload, server sign in api needs reload
Authentication Flow Issue: Email Verification Not Syncing Across Sign-In Methods
'/forget-password' rate limit is not working after latest update
callbackURL not supported in v1.2.5
Latest update broke `emailAndPassword: {autoSignIn: true}`
BetterAuth+Prisma given Too many Connections error
[breaking] mapProfileToUser gets called twice when logging in via ID Tokens, breaking authentication
advanced.generateId: false is ignored in 1.2.6 with drizzleAdapter
New Prisma generate and init
cookie gets cleared after redirect in prod
Google oauth not redirecting
Google Oauth error on 1.2.6
HaveIBeenPwned creates user anyway
Invalid Callback URL on expo IOS when doing Google oauth
Google Sign-In throws Error in Production
Spotify redirect url
Reference naming doesn't fit all use-cases
Stripe: `onSubscriptionUpdate` passes old subscription data
Custom schema model name in organization plugin does not correctly change FK drizzle adapter
Generic oauth failing on missing email
authClient.signIn.email returns status 0 with empty statusText — No descriptive error
Stripe plugin: seems we can't reactivate a canceled subscription
webcrypto issue w/ vite6(vs. 5) rr v7 ssr while in cf-wrangler [minflare]
Admin plugin : listUsers total is not correct
BetterAuthError [BetterAuthError: Session data is too large
GitHub email verification doesn't work if you have a default email set on your GitHub profile
Stripe Webhook Fails When Processing User Subscription
getSessionCookie does not work in middleware
Issue: Session not retrieved on latest safari version
Custom Plugin is not type safe.
Additional Date field throws an error
Can't generate migrations using D1 on Cloudflare Workers
getSession intermittently fails cookie signature verification, deletes cookies
Not able to create polar Checkout
using authClient.organization.setActive() corrupts session_token in cookie
auth.api.getActiveMember does not have type signature for role
The getFullOrganization() members.user type doesn't include id: string but the data does
The field "teamId" does not exist in the "invitation" schema.
Stripe List Subscriptions with referenceId always throws 404
[STRIPE] Annual discount & Upgrade
Network error!
if verification.disableCleanup set true, then the records were getting deleted in verification table
NextJS build error
Double Owner member ship creation on creation of organization
TypeError: Cannot read properties of undefined (reading 'value') at withReturning
Error: invalid column data type undefined - when running generate migration
pnpx @better-auth/cli generate removing session table
Type Error invalid URL string
Drizzle adapter usePlural not working with passkey & JWT plugins
getSessionCookie is broken in Next.js middleware
Missing documentation
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit t
organization.update does not error on missing permissions
Delete Verification value function
useSession not reactive?
Polar plugin wrong css on mobile
getSessionCookie() return null is some cases
Hydration error in useListOrganizations hook
Cookie cache does not refresh
API signUpEmail not throwing error
errorCallbackURL in client side social login is not working
bearer token returns null with OAuth provider
Error when updating session expiresAt
Limited access to webhook events
404 with stripe plugin
`auth.api.forgotPassword` not throwing error
TwoFactor plugins requires id column in schema?
API Key Metadata is null?
Performance of `auth.api.hasPermission` seem to be very slow
Stripe | BetterAuth webhooks in Cloudflare need to be async error (FIXED)
Disabling the default team requires you to provide a function for a default team
Seems like stripe schema isn't working.
Admin plugin
New update makes my plugin error
Stripe | Make success_url optional?
Stripe Plugin bug
Stripe Plugin | Received unknown parameters: params, options
Admin Plugin Issue with better-auth 1.2.1
Stripe Plugin | Bugs To Fix
mapProfileToUser doesn't work when using ID token authentication
Social Login state mismatch error
twoFactor.verifyTotp missing trustDevice: true
Auto Cleanup for expired verification data - fails on D1 (also sqlite?)
Fixed menu header links not visible on mobile
Stripe Plugin | Webhook Event Failure
V1.2.0: ERR_PACKAGE_PATH_NOT_EXPORTED
Social and email sign-in function are typed as never type
Secure cookie prefix
"/api/auth/*" rule fails on express ^5.0.0
Better-auth cannot be set up using pg Pool and postgres
Getting a 404 on useSession and unable to use Svelte Store
getSession returning null in dev mode
[TypeError] Invalid URL
Typescript error on plugin schema reference field
Expo Better Auth breaking with any client plugin "better-auth/client/plugins"
Organization Plugin: Empty invitation handling
Expo: TypeError: Cannot read property 'subtle' of undefined
Documentation is missing userId
1.1.19 breaks expo client
Manually verifying magic link token throws unexpected invalid_type
Sitemap urls are localhost:3000
bun: Couldn't read your auth config in auth.ts
Session stealing?
Unable to generate cookie in "after" hooks for sign-in because un-authorized
userinfo_endpoint key in openid-configuration has incorrect capatlisation.
Running SvelteKit on Cloudflare workers I am getting this error
Change email: the second verification email (to the new email) does not redirect
openid-configuration - Missing content-type header
Using useListOrganization() causes API to call `/api/auth/t-o-j-s-o-n`
Is there a way to extend fields for plugins?
api.auth.getSession calls SELECT session and SELECT user separately
Failed to get session, when remember me is checked
Anonymous user account getting deleted on calling /get-session
Bearer not including set-auth-token in the response headers.
Callbacks issue in passkey plugin
'"better-auth/plugins"' has no exported member 'sessionMiddleware'.
Session Cache disappearing in Next.js
Error in signing up using cloudflare d1 database and drizzle orm on nextjs15
warning! better-auth with Turbopack enabled
User is not able to ban user, even when he is admin of the org
issue getting session using mongodb
High CPU usage when importing the library on a monorepo
timeout when get the body await request.json()
Updating organization metadata
organization.acceptInvitation is throwing exception on sqlite - d1
Typescript additional fields date type error
Unable to use `mongodb` client
In EmailOTP Plugin, the user is notVerified after signIn.
No control Over credentials on server side
authClient.organization.create() error, in latest beta
oslo package
Signin throws an occasional not valid JSON error
EDE in API endpoint set-active
MongoDB
Server auth not working (SvelteKit) via signin with email
Github Oauth not working in production
Failed to get source map when using auth.api.getSession() during first request
[Not sure if bug] Admin plugin does not use the Infering Types
'import.meta' is currently unsupported, js engine: hermes [Component Stack]
Request Keeps Pending (Express.js)
authClient.signOut error when multiSession() enabled with prisma adaptor
ReferenceError: process is not defined (Cloudflare + Sveltekit)
Google SSO not working
signUp on server-side not sending sendVerificationEmail()
Argument `username` is missing when connecting with GitHub Provider
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
light mode colored shadows are not that great
Multiple apps sharing the same database using Better Auth
organization plugin for "embedded" use case (no user login)
2FA Trusted Devices
how to use kysylo-adapter with better-auth
How do I set which routes in Svelte are protected?
OIDC federated logout (`end_session_endpoint`)
Better Auth with Capacitor
Multiple accounts with the same e-mail
Magic link verify on a secondary device
Account linking extra info
plugin schema: onDelete: "cascade" does not work?
manage sessions in server
How to create headers on the server
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 😅)
server actions for users
Argument `stripeCustomerId` is missing.
Get user info
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?
sign in stuck loading in deployed app
Error when generating SvelteKit tables
Anyway to allow shared emails?
Why is the accessToken not encrypted by default?
Anyway to set a non-user input field based on request headers?
deleteUser response: FAILED_TO_GET_USER_INFO
Updating email_verified and image fields
Unclear how to call phoneNumber signup from frontend
cli generate not working: "Please run prisma generate"
I cant decode better auth session cookie.
How to set Bearer token in Next.js
How can I configure something like nextauth `callbacks.signIn`?
Unclear on how to handle session and cookies in sveltekit
Microsoft Provider
two factor with social
Stripe Plugin webhook error
No mention of callback url in docs for Apple
Better Auth + Tauri + Sveltekit
How to extend Sing-in & Sign-up body with custom fields?
Drizzle + PG + Hyperdrive + Cloudflare Workers doesn't work
Unprocessable Entity on Signup
How to set CallbackURL in emailVerification
Invitation email
build error -next js
Using custom schema for models, with prisma adapter.
Installation problems
Stripe Better-Auth Plugin
Throwing Error when try to login with existing user
Drizzle Postgres UUID
Verification model not found in schema object
When impersonating a user, is it possible to set that session as the current session?
disable magic link redirect and any other redirect
Session info isn't available fast enough on manual page reload, server sign in api needs reload
Better Auth]: [#better-auth]: Couldn't read your auth config.
cli not generating migration files due to cf bindings usage
Next.js server actions auth
Sessions not working
updating schema field of type: string[] doesn't work.
[Better Auth]: Couldn't read your auth config. Error: Cannot find module '$app/paths'
Tanstack Start how to handle session cookie
How to decode a cookie
social signUp flow
Manage Customer Portal
Anyone using auth.api in a server action with useActionState?
Authenticated request with Expo
golang backend with nextjs cookie check.
Social Sign-in Invited Emails Only
I have some type errors, how can I fix that?
I think there is some type error
Additional fields missing from User type
How to refresh JWT manually
[OIDC] `offline_access` invalid scope
Issue with sign up using express
Auth service in microservice architecture
Reset Password
Posthog identify after sign up
Avatar Upload Issue: Session Cookie Size and Upload Timing
magic link sendMagicLink using astro request is undefined
Anyone managed to create a server side protected route?
On-User-Behalf flow (Microsoft Entra)
Nothing happend on email sign-up
Stripe 1.2.7 restore issues
stripeSubscriptionId is not being populated
Hook into Post oauth login flow
Stripe Subscription Update Shows Error in Console but Still Works
Fixed OTP for phone number sign in
Lambda Authorizer with Better-Auth
What is the "token" returned by auth.api.signinEmail?
session object on databasehook
couldnt find organization.listInvitations
Backend Solution Better-Auth Integration
How to set a password if we are logged in via a provider?
Handling error of forgetPassword call
Provider invalid OAuth2 redirect_uri
Adding custom properties to Organization members
organization type error.
Custom Tables | SQL Schema
RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15
What would be the most secure and preforming way to use Better Auth with Next.js
auto-creating organization on user signup?
Hanging timeout server-side requests using Cloudflare Hyperdrive
New Release Causes: `Field user_id not found in model member`
Does forwarding a JWT from a React SPA to C# .NET app make sense ?
Is there a way to get the refresh token after using a social provider?
How can I get member with user in adapter
guys, is it possible to do with better-aauth??
Error generating schema
How can I get other plugin's option in my plugin?
cross-site cookie in express
cookieCache doesn't work with customSession plugin
redirect after signout on a protected page
Hono on Cloudflare Workers with Better Auth always returning 401 Unauthorized
NextJS Build Fail with createAuthClient
Trouble creating session after login with 2fa enabled
How to save custom fields (like address) in my database when admin creates a User?
Output debug mode?
Can better-auth/client be used with a non-Node backend (e.g. Symfony)?
Error: Too many connections (MySQL)
oauth redirect to homepage on another domain
Redirect Problem
Setting Admin Roll With Hook
Trouble Creating Session After Login with 2FA Enabled – No Session Created or Persisted
Typing Role
Type error defining stripe plugin when project type is module.
Problem When Updating the User in the Session
Refresh provider access token using genericOAuth plugin
getSession null
Stripe Plugin
Account Linking
Cloudflare assets_navigation_prefers_asset_serving breaking oauth redirect
Multiple Session Types / Customize Options for Individual Sessions
AccountId
getSession always returns null
Implementing User Roles
get env bindings from better auth email function context.
Email OTP SignUp
Polar
Email & Password verification with refresh token
Server side validation
How to refresh cookie cache
Polar error after upgrading to zod 4 beta
Updating better-auth schema after re-defining Prisma Schema
Retrive organizations members with bearer token
How do teams work in user management?
ctx.error type
Getting SERVER_ERROR: TypeError: Cannot read properties of undefined (reading 'validate')
Session cookie not working in production deployment
useSession is not is not callable ?
Error on generate schema with prisma
How to make two unique fields in a schema
How do I use the auth.api.deleteUser endpoint from a server action?
account_not_linked: I have react and express setup and using better auth
cloudflare + better-auth and turso
User avatars/profile pics for Microsoft Entra social sign in
Determine if new user without callbacks in expo
Custom values into `authClient.signIn.social()`?
Update additional fields in updateUser
additional fields not included in session
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
The field "id" does not exist in the "verification" schema
typescript not recognizing role field in astro locals with better auth
onAPIError not working
Admin API tools (without authentication)
"userId" as id of user instead of "id"
set cookie manually in next.js server action
stripe subscription edge case question cancel_at_period_end
Difference between SSO and social sign on
Stripe subscription management
After successive transactions, it throws you to the login page
Basic Authentication with Caddy
Is there an expiration of the email verification token?
Admin Role
How to return error from sendVerificationEmail ?
Passkey Failed to verify authentication
inferring types on the client, based on plugins added on the server
BetterAuth scaling
forgot password with Email OTP
how to protect route based on role
converting bigint
SIWE Auth plugin
better auth as authentication service
what's the signature format for session cookies?
Magic Link Expiry
how to integrate non-oauth providers?
How to use stripe resume subscription
Unable to get access to authClient.stripe.subscription
hono | trpc | api key auth with betterauth issue
Record<string, any> union in returned data object from authClient hook
New to SaaS Application Building
better-auth Session Not Recognized After Manual Creation in Telegram Callback
how to customize/translate BASE_ERROR_CODES
Stripe plugin status properties full list?
Email Verification
How to fix Stripe error
How can I get a user from an api key ?
How to access user email or userId in social login hook (Google/Microsoft)?
Can you change callbackURL with requireEmailVerification default option?
How to run the client on a server route as admin
Even being owner, getting YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION
Team metadata
Express returns 404 on /then, but responds to /ok
Issues with Skeleton Loading Not Displaying for Session-Based Components
Sign out after revoking current session
Ratelimit with Email Verification
Clarification on Email OTP Auth Flows
Redirect for first time user with social sign in
Drizzle and better auth problem
How can I complete some actions on OAuth authorization before signing the user in?
What is the best approach when handling the protected and unprotected routes
Expo and hono.js
Better Auth Error Session data is too large to store in the cookie
How can i setup with express and mongoose?
Next.js Hydration Error Linked to useActiveOrganization Hook
how to return more data from `/get-session`
Zero Sync Authentication
User Cancelling Authentication Redirects to Better Auth Error Page
Guidance on JWT / Bearer usage for external APIs
Expo Sign in with Apple: clientId vs appId vs serviceId vs bundleId ?!? 🤷
How to update `api/auth/get-session` with new session data?
Issue trying to convert to cloudflare workers
can Stripe's period_end be overwritten?
subscription table is not generated
Stripe plugin
Check GitHub organisation
Backup Verify
OTP
Long delay after logging in with Apple (white screen)
User VS Account
Trying to understand the connection between client and server in Tanstack Start
reset-password not working with email link
Different redirect based on first time user or returning user sign in
Error generating backup codes
2FA Totp
Get session data on first load (nextjs + elysia)
Get session
Better Auth + MySQL - Failing Schema Generation
Session cookie not refreshing
Steam Social Login - Open ID 2.0
Better Auth Api Key Sessions
Hono API on Lambda
Middleware - Better Auth
Logging In as a different user
Stripe creating subscription: Unauthorized 401
useSession returns null
Cloudflare Worker exceeded CPU time limit, while sign-up/email.
Getting FORBIDDEN (403) error when using authClient.admin
Organization: Determine what team a user belongs to
How to revoke all sessions after reset password from forget password link?
session schema is missing
Slow API response time until sign out & sign in again
Error on Signup with OTP
Issue with Session Revocation and Middleware in Next.js
Nextjs middleware not working
First Sign In
Expo Google login
Authentication with Express backend + Next.js frontend
Plugin to extend organization plugin
annotations forbetterAuth and createAuthClient
Rate Limit doesn't work for /send-verification-email
Cannot set additionalField when calling signUp.email
Importing TWO_FACTOR_ERROR_CODES – Is It Possible?
Discord auth scopes
Different frontend and backend URL with social logins
Apple authentificaiton
Next.js + elysia.js cookie session issue
Error sign up Invalid `db[getModelName(model)].create()` invocation in
2FA email login with `auth.api`: Ensure verification is completed?
Better Auth + Hono + Nextjs ( JStack ) Cookies
Auth service for a microservice
cloudflare error
Dynamically create Role and Permission.
Hono + Better-auth + Lambda Cookies
Is there any way to create organization after user create hook?
Is it normal for getfullorg to have so many API calls?
AuthClient not respecting baseURL
Retrieving the linked google `email` for credentials registered user
Forget Password Security/Rate limits
Invalid token on resetPassword
Best way to protect routes in TanStack Start?
elysia with better auth not working
Google auth redirecting to the main site instead of the webpage
Help with Email + Phone before 2FA Flow
Refresh Spotify access token
Social login Account creation with additional field
Social login with separate backend domain
Problem with OAuth (Google) using BetterAuth with Express for backend and Next.js Frontend
How to debug addPasskey not working in Production (Vercel)?
FAILED_TO_CREATE_USER
perform action after successful email verification
Manually create a session
not getting rate limited
Password not updating on resetPassword
Best way to run code after user logs in/out
Query tables created by better auth with kysely
How to Force Email-OTP Plugin to Use Redis Instead of PostgreSQL
Image not updating when using genericOAuth client.oauth2.link
Unable to send OTP
SolidJS useSession hook - refetch
Callback when logging in with social.
deleteUser questions
Replace or override baseEndpoints
Change email for unverified user ?
MSSQL not working at all
activeOrganizationId is null, but user is in Org.
Multiple roles per user in Admin plugin
fetchOptions hooks not running
Dealing with generic OAuth provider that does not send email and account linking
Is there a way to Disable Implicit Sign Up when using email OTP plugin?
API Keys on Organization level?
Invalidate useSession()?
Better Auth Microsoft OAuth - email_not_found Error
Help with Stripe payments
Any way to get cookies from client signIn methods when used as server action?
`getSession()` coming back as null in Hono/ORPC middleware
State check failing for Discord OAUTH2
Email sign-in takes a long time to execute
The delete user operation failed silently without throwing any error message.
Disabling email scope on Github oath
session cookie not setting after signup
Is their a migration guide for firebase?
Need Help with Multi-Tenant, 2FA, and Role-Based Authentication in NestJS using BetterAuth
Can I Add a User-Type Condition to the SQL WHERE Clause During Sign-in?
CSRF with Next.js server directive w/ Backend Api
Vite cannot find "react" import in the npm package
Exclude role in the signup (frontend) as it should be driven from the backend
oidc provider - Change issuer?
Update TypeScript types of the user ID table
Do invites only work with existing users? Or can an org owner invite an employee directly?
redirect after sign up, emailAndPassword
Extending organization.create
Middleware in a Better Auth Project
Create organization after singUp
rbac / orgs / permissions
Admin to add users to their organisation
Session type after using admin
Anyone have an idea what this bug is about
Tanstack Start Server functions cookie issue
Single Auth Multiple apps setup.
How can I extend the organisation plugin?
[# Drizzle Adapter]: The model "team" was not found in the schema object. Please pass the schema dir
Better Auth errors with state not found after social sign in
.cursor/rule For Better-Auth
Betterauth CLI Fails on sqlite
Need help in setting up Better Auth with Ronin on Next.js
Next Auth `iss` claim missing
Machine authentication (Client Credential Grant)
Stripe sync subscriptions
How to know if the signed in user is a new user? (For both Password and OAuth)
SignOut function doesn't immediately re-invoke session change
Get access to genericOAuth profile in customSession
Not able to get session type while using auth.api.getSession({headers: headers()})
Help setting up better auth in a fetch environment
Database Hooks within a Plugin
Where to get these ID token? the documents looks half.
Auto logout
Infer additional fields for admin?
Expo - In-app browser not showing up
Express error
Cannot read user data after social sign in with google
Google Oauth Scopes Error
Conflict between Admin and Anonymous plugins – 500 error
Question regarding callbacks (used by next auth)
I'm trying to disable some routes
Help handling JWT with Sveltekit
Custom Session running twice on GET /api/auth/get-session
manual session refresh
Google redirect_uri_mismatch auth
newbie: are my conventions for checking if a user is logged in on client and server side fine?
Stripe Embedded Checkout
auth.api.getSession not refreshing session_data cookie
Better auth organization
Seeding an admin user
How to get type for permissions
how to map custom schema with better-auth
Admin List Users not returning Pagination data
inferAdditionalFields doesnt work?
newbie: are my conventions for checking if a user is logged in on client and server side fine?
Organization Member List get if two factor Auth is enabled
Updating Discord Image
Custom Fields
JWKS Error
Prisma + Better Auth + Turborepo Issue 🤔
Providing additional fields when signing up via magic link
creating the first user, where disableSignUp is true
Can not change the issuer and audience of JWT header and also the payload
How to implement invite-only registration flow with better-auth?
How can I make better-auth typesafe?
kysely + organization setup
Question on authorization
2-step login flow and organization question
Extending user object when calling getFullOrganization()
MongoDB Error Duplicate key
Running npx @better-auth/cli@latest generate does nothing.
nextjs error w/ betterauth on build
Help with Seeding Existing Users into Better Auth
Dealing with session expiration in a React app
Facing difficulties with NextJS + Hono + D1 (Cloudflare stack)
How to Ensure Organization List API is authorized
delete or clear cancelled invitations
Multiple teams
passkey plugin's endpoint `generate-register-options` gives me 401
authClient.GetSessions() returning null for user data and session data
Enforce Email Domain Restriction with Google Sign-In
Error: The edge runtime does not support Node.js 'crypto' module
Social sign-in doesn't work
Is it really necessary for database if I am only using Discord Oauth
Custom
Can't use @better-auth/cli when exporting a auth function
onApiError custom error page
Better Auth Session Not Loading in TanStack Router Application
is there any way to handle current session across all the app once
Migrate from next auth to better auth
Not requiring captcha for social signins
Internal Server Error when deployed to AWS
pass discord ID to session
Organization inviteMember - Not Allowed to Invite
How to integrate BetterAuth with SolidJS
authClient.useSession() not callable in my Nextjs (15.2) client component
Using mongodb adapter and generateId creates id field in addition to _id field
authClient.listSessions returns empty array
The organization plugin only a select number of server versions of the sdk?
Does better auth support authenticating on subdomain, carrying over to main domain/other submains?
PrismaClientValidationError
Stripe migration does not work
Wierd behaviour, isPending from useSession not triggering
Custom Admin Role - Admin Plugin
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?
Custom Fields in Organization Table Not Saving Values
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
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]
Init Drizzle with cloudflare env variables
Stripe one time payments?
Error in auth with discord
create organization in databaseHooks.user.create.after
Can BetterAuth’s OIDC provider work with Saleor as an external auth system? If so, what’s the config
Ip address and same browser verification between otp/magicLink trigger and verification.
cant find table column that i added to the user table in session
Core Schema Adjustment - ID Data type from text to UUID
how rememberMe works?
Change `id` field name?
Change the frontend of the Better-Auth API error page
Admin plugin
admin plugin generates invalid prisma schema
INVALID_ORIGIN when I try to check organization slug or create
Integrate betterAuth with React-Router v7 cloudflare template
How can I prevent rerendering while changing route
On-boarding step after social login
why the ipAddress config is used
Re-sending verification link after verification token expires
300+ type errors in better auth packages when attempting to build the project
Is there a way to use the permissions API without admin or organization plugin?
Cookie not being set when using live lambdas
Session still active after calling authClient.revokeSession
403 error when listing user from superadmin role
Use auth on client or server (NEXTJS)
better-auth organizations
Access token from Social Login
Change password from the server
Set active org on login
How to save ip addresses into the session table
you are not allowed to list users 403 error
Stripe: how can we renew a cancelled subscription
How to log sign-in, sign-out, and errors?
Cant delete API_Key
Feedback on Using Hooks for Email Verification After Sign-In
Why does the session disappear after refresh?
support both MagicLink and OTP
Argument `id`: Invalid value provided. Expected String, provided ().
how do you run a function after user creation?
How to trigger refresh/update of session if user info changed
google sign up page doesn't open
error in trying to create database schema with the cli
One tap: Google One Tap is only available in browser environments
Can an Anonymous use their anonymous account multiple times even after they close the app?
Only allow one active session at a time
Delete User return db error
SvelteKitError: Not found: /api/auth/sign-up/email
Machine-to-machine authentication
Admin list users with extra properties
Better Auth ABAC (not RBAC)
Conceptual questions on an auth setup with sveltekit and a separate api sever
Server session untyped
Error in trying to handle better auth on the server only
Secret not working
Prisma transaction support
E2E Tests with BetterAuth
How to close passkeys prompt
Disable email fields (email login) i am only wanting to allow access-key auth
Error codes are not strings?
What's the difference between additionalFields and customSession?
Storing Session Data
Is it possible to add multiple authentication systems?
getSessionCookie() always null | Next.js 15.2
Any way to use split Access Tokens and Refresh Tokens
🛑 Next.js 15 – “cookies inside use cache” Error in Layout Component
Multiple Organization : Unable to ugprade
getSession causing error: "Cannot read properties of undefined (reading 'validate')"
user.findFirst and session.findFirst being run too many times
[RangeError: Too many properties to enumerate]
How to seed users?
Can i setup two separate auth config in single project
Add current Stripe plan to user object
Vercel Deploy Problems - Cookies not detected?
Broken auto sign in?
Azure B2C vs B2B
How to secure my socket.io server
Error 400: redirect_uri_mismatch
Payload Request shows email and Password
Optional accountId table?
Generate sessions for integration tests
ERROR [Better Auth]: State Mismatch. Verification not found
Hono dosen't set cookies, so session returns Null
Maintaining session in a webview.
OAuthProxy with branched database
Handle check email verified
Email verification
Organizations plugin with Drizzle RLS
Magic Link Tutorial missing something??
Admin Users Count
How to securely host a pg DB for better auth
Issue with Google OAuth in Expo with Hono backend
Use the admin and organization plugin together
I want to disable updateAge for session expiration
How can i get email from resetPassword
SignIn Anonymous on Server
No cookies set when using the signInEmail method
[magicLink - drizzleAdapter] The \"payload\" argument must be of type object. Received null
Org plugin is ignoring additional fields on teams
RBAC
Expo setup error
Astro + Drizzle + Cloudflare D1
Keycloak SSO Integration
signout on the server
TypeError: list.filter is not a function.
Adding Members to Organization with Teams Enabled
Is there a way to customize userCreate function to populate additional field?
Admin + Organization Plugin: Role Columns
User agent update
Error creating organization
Stripe. Annual subscription not updating in database
Get User by ID
How to implement Free tier in Stripe plugin?
using redis as secondary storage for sessions
authClient.admin.hasPermission always returns 401 unauthorized
How to get a list of guilds a user is in on Discord using Better-Auth
Adding custom user fields (role, address, etc.) to auth.api.getSession()
Set tables in auth not public
API endpoints timing out
ERROR: User schema updatedAt - Drizzle | Postgres
Unable to add impersonate permission to a new role
Google Social Sign with idToken
Facing issue with sign up
How to store custom data in session?
Error with custom field mapping. whereClause id getting undefined value
Cross-Domain Authentication with Next.js: Choosing Between Bearer Tokens and JWT for better-auth
How to sign in with phone number + otp after verification
How to handle "Client"-Error thrown internally from better-call
betterauth/react acting weird and hono cors problem
Better Auth returns an error on google social sign in of a State Mismatch
ExpoClient type mismatch
Row Level Security
Why I get 400 when I try to cancel subscription?
const { data } = await authClient.useSession()
how to configure postgres schema
How the expired sessions were deleted from DB
How to add json field in user model ?
Implement signUp with OTP verification
account and session table expiry column explanation
Rate Limiting in a SvelteKit app
Getting email verification error
adminHasPermission?
How can i set custom data to the session token?
Organization additional fields
Google oauth redirecting to /api/auth
Sign up control
Session isn't updated after changing email of a user with an unverified email
Passkey on same device?
RR v7 framework mode subdomain getSession issue
Return POST /api/auth/sign-in/social 404 when I click the Google SignIn button
Why cant i access organization enpoints in auth.api
signIn and signUp with password using email and OTP
Make authenticated request from python rest client
Hi all,
401 doing listActiveSubscriptions on server side
Database Seed Script Using Organization Plugin
authClient generates error
Trigger annualDiscountPriceId on Stripe
Type Error adding TwoFactor
OIDC Provider questions
[Teams] How to add team for existing members?
Unable to set user ID using databaseHooks
having custom messages on authentication errors
Error fetching subscription from Stripe
Additional fields
Can i check if totp is enabled in 2FA?
Invalid body parameters
useSession not receiving all infered fields
Stripe subscription update error
Anyone else getting this error?
Hono RPC session not in request
isNewUser
2fa sendOTP on Login issue
[SvelteKit] Stripe checkout redirects to /api/auth/dashboard
Polar Checkout not working
How to grab LinkedIn access token for other API calls
Is it possible to create a session manually?
Headers for fetch
2fa and oscial provider
Generic OAuth itsme
anonymous onLinkAccount() never called using auth.api.signUpEmail() or auth.api.signInEmail()
Sign up logic questions
Multi-tenant SaaS tool with multiple apps as tenants
Session size
How to seperate better auth?
Admin plugin authorization
Is there a way to adjust the table names associated with plugins?
/api/auth/subscription/upgrade 404 with stripe plugin
PostgreSQL support
Decoding auth token from non-ts environment
Polar not working
Sign in with Apple in web fails / error: 'invalid_client'
OTP Implementation
How to handle database errors
Cannot enable two-factor Authentication
cookie getting deleted automatically after refresh on signup with cloudfare workers
InviteMember roles as array
How should I store session / user data on client
Custom Permissions Not Working
Infinite Call Using Organizations
Unlink account doesn't work with allowDifferentEmails enabled
Unable to use endpoints in custom plugin
Session duplication bug when two-factor plugin enabled
Using different schema in postgres
How to update session
Different permissions per user
Cookie based sessions without storing it in DB
How to fetch session from auth server
Session cookie not updating
Custom URI scheme disabled by default on new Android client
Incorrect type inference with additionalFields inside a monorepo
stripe multiple subscription for one customer id
Google Auth Not working in Production
Registration Error
Admin protected routes middleware
Inferred Type Cannot Be Named with Nanostores
Cant find twoFactor property in authClient
[1.2.2] Type error with Expo client plugin
Create token from CLI
Is the hooks executes in transactions
User info from social providers
Auth rate limits not working on a VPS Deployment (Coolify/Dokploy)
Model "user" was not found in the database schema object with drizzle
How to add a after hook for User creation
Need guidance to set Captcha!
kysely
Where to mount handler ? (Nuxt3 + ExpressJS backend)
Basic hook to check col on signin
CSRF Protection for API Routes
Error when running npx @better-auth/cli generate
OAuth Proxy Setup
Typescript error after upgrade to v1.2.1
Am trying to create an org when a user signed up.
how to use `auth.api` on other servers
Using postgres Instead of pg in Better Auth – Is It Possible?
stripe error with express.js
Auth setup for a mono repo with 2 projects
What does this TypeScript error (red squiggly) mean?
callbackURL with Username
Stripe integration with nuxt error
Making API Requests w/ Tokens from Better Auth
OIDC Provider Plugin, how do I set trusted applications?
Caching is not utilized, I have setup cookieCache true, still no cache
Session returns null, v.1.2
How to specify auth method in OpenAPI specification
Best practises regarding api key authentication
Migration Relation "subscription" does not exist
What is the best way to self host better-auth to use across microservices?
Getting stripe plan name in SSR component session
API key plugin - Orgs?
How to correctly update the user info?
How to Register with Only Username, Email, and Password?
How to manually invalidate session data?
getting clientlayout to work
Hello How do I update password but before that I want them to confirm their current password.
Anonymous User Setting Username
better-auth-harmony migrate not working
Beta testing stripe plugin
How to create an organization without members?
Global onSuccess Hook does not work in auth-client
*noob question* - bearer token or "apiKeyCook" openapi documentation
This server side code worked on `^1.1.18`, but not anymore on `^1.2.0`.
Route based access control
Cached Session Cookie (JWT) is not refreshed (SvelteKit)
Getting a JWT from Google Auth for Convex
Update session on hooks
Expo session expiry
GitHub OAuth: user name can be null
While deploying - A Node.js API is used (process.exit at line: 1451) which is not supported in..
Rate limit with custom database (Drizzle ORM & PostgreSQL)
Type Error: Type instantiation is excessively deep and possibly infinite
Oauth new user
Help with Middleware Session Cookie (Development vs Production)
How to Retrieve DATABASE_URL in Cloudflare?
Timeout in Production
Why am I getting OTP_EXPIRED on sign in?
Expo with Google Social
How client plugins actions can be accessed?
Server Side Sign Out
issue with better auth base url configuration
NextAuth password migration
Is it possible to set callbackUrl on server-side email sign Ups?
Calling signIn.social with extended field data.
openapi not showing commands
getSession Headers Type
How to change admin roles according to each available admin functions ?
base path not resolving correctly
Dynamically setting baseURL
database: new Pool
Using Kysely with better auth
Use Cache Directive with getSession
Bearer Authorisation on request time using better-fetch
sign up the role to be stored in the db is "agency" but it is alwyas stored as "user" any help ?
After hook for social logins, newSession is null?
Prisma database with Prisma orm showing Cache skipped reason: (auto no cache)
Cookies not working in next js middleware
Error generating schemas.
Update session manually
Trying to get up and running with an Express app, but running into an error when `npm run start`
How to return custom session with modified DB fields
Passkey Plugin working with Yubico key?
[Help Needed] Integrating JWT Auth, Scaler, and Drizzle ORM with Hono Open API Starter
Creating an org at user creation best practices
How do I control what data goes into .session_data cookie
GetSession not returning user and/or session objects, here’s details
(OpenAPI) How to add servers to openAPI plugin?
Help with Better-Auth in Next.js – useSession Causing 404 Error
(Cloudflare) Workers CPU resources exceeded
Additional Fields on Client
Email Otp Verify Email
ERR_INVALID_ARG_TYPE
First time building with better auth why does this happen while deployment?
Session cookie not being set upon signup
Facebook auth issue
The inferred type of 'authClient' cannot be named without a reference to '.pnpm/@better-fetch+fetch@
getSession returns/is null in hooks.server.ts (svelte5/sveltekit)
Can someone help me with JWT pluging
How to handle hashpassword if you're seeding an user
User type after adding additional fields to user
Pending state not resolving!
[Idea solicit] Pass authentication to another NextJS app after a logging in on a separate NextJS app
How to verify password?
[Google OAuth] No token found after successful login.
Magic Link Type Error
Missing field in session object with drizzle adapter
Session cookies issue
Customizing Sign up flow
Can I integrate Better-Auth between Nextjs and GO Backend?
Password visible in network tab for request to `signUp.email`
Need help to integrate BetterAuth with react-hook-form and zod in Remix
Create linked prisma model on sign up?
Need Help Single Sign-On (SSO) with OIDC Provider Plugin
Can I use both Bearer token and cookie session?
CORS Issue with better-auth in NestJS and Next Setup
How to integrate better-auth with cloudfare D1 database?
Check if device has already a passkey or not
[TypeError] Invalid URL
How do you handle db migrations and user table
Custom logic validation
Issue in create-t3-turbo better-auth implementation
Two types of user
Server API: No Get Active Organization?
Better-auth and e2e tests
Session cache update on demand
Better-Auth CLI in Monorepo
Infer Additional fields
Integrate new table schema created using plugin with authentication
Multiple session for user
Is it possible to not pass the database parameter?
Roblox OAuth provider error when linking
anonymous user details
Session is null
Passkey
What's the best way to enforce a user to be signed-in for certain routes?
Oauth
404 Auth Handler
Accessing Server Plugin Endpoints in getAtoms Callback
Is all $fetch requests prepended with /api/auth ?
Social login not working with Safari in production
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
Can i use better auth in lambda
Microsoft login
Reactive Session
Is it possible / advisable to customize user table name and ids?
Create a SSO provider without having to insert it at runtime?
Rate limit forgot password (password reset email)
Trying to use Drizzle and SingleStore in Next.js
ngrok for webhooks
signInEmail isn't properly setting cookies in production? (NextJS 15/Vercel)
better-auth.two_factor cookie not removed on signout?
Custom DB Adapter
Soft Delete Organisations
How to check out beta captcha plugin?
What if sending email failed?
How do you deleteUser from server side?
Multiple usage of same plugin?
useSession's isPending doesn't work correctly when cookieCache is enabled.
loging the stack; "payload" argument must be of type object.
How to check permissions on server side
How do I seed users for development env?
Bearer headers not returning even with CORS configured
Getting so many errors related to mongo db
Issue: 307 Temporary Redirect After Sign-In in Production
Refetching session for additionalFields change
Set the correct Typescript type when using plugins
DrizzleThe model "verification" was not found in the schema object. Please pass the schema
Forget Password endpoint always returns status code 200
Next.js [Admin] [Username] listUsers() returns UserWithRole[] missing property `username`
Retrieving session after magic link signin in Expo
What info does server getSession need?
Setting cookies in electron with better-auth
Using BcryptJS with Better-Auth
Accepting organization invitation flow
Open Social SignIn in external window
Merging Existing Drizzle User Table with Better Auth Core Schema
OAuth Proxy plugin not working
seesion not saving when running dev server with --host or when running build
Getting Error on Netlify Edge Functions (SvelteKit)
ADMIN plugin not working
Does anyone have a minimal, but complete Vue3 sample?
gathering name on signup with otp
Weird behaviour when logging in with Discord
Page unresponsive after sign in redirect (Chrome)
Implement manual OTP - next-auth migration
Password null on signUp POST
Sending a mail after email verification
Cookie cache does not refresh with server-side getSession call
Validate Client Side Auth On Server
Generate Oauth/Social sign in links server side
Generating backup codes gives error
Which is proper way for api authentication for nextJs api? taking more time to give response
npx @better-auth/cli generate - Error: mongodb-adapter is not supported.
React Router v7 Integration
Hono and Better-Auth
Is there any downsides to using better Auth WITHOUT the handler and client?
get Open Invites for user ?
Blocking specific routes based on user session
Nested object as a users additional fields
SyntaxError: Unexpected end of JSON input
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
setRole doesn't work
TypeScript Error: ActionArgs not assignable to Request in better-auth handler
Google Sign-In Not Working with `authClient.signIn.social()`
node:crypto not supported (in cloudflare pages)
Can I share client API routes across subdomains?
ERROR [Better Auth]: BetterAuthError [Error [BetterAuthError]: [# Drizzle Adapter]: The model "user
Google OAuth help
Ongoing Sveltekit/Drizzle ORM CORS issues
How to create new user using drizzle to better-auth users schema
Stateless, Databaseless Auth
CORS Problems when logging in
connecting custom (extended) users table with better-auth users
extending google social login scope not working
Social login on server
Admin Plugin - access "role" client side
vite tries to cache my authorization calls
TypeError on Signup
sign in method didn't return role
Creating declaration files results in too long type
OpenAPI doc do not update when I add additional fields in the model (custom plugin)
Closing DB pool
callbackOnVerification receives user as null
In microservice architecture how to setup jwt with refresh token mechanism?
How to handle niche case with multi-tenant
What is the betterAuth({}) type?
Link phone number to existing users
integrating with postgres rls (supabase)
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
SvelteKit Example
Correct way to create webhooks
Correct way to determine the baseURL?
Override types
Issue with Google Auth
listUsers returns status 401 UNAUTHORIZED even though the current user is an admin.
USER_EMAIL_NOT_FOUND occurs when using authClient.signIn.social({ provider: 'apple', idToken })
Organisation accept invitation throws error
Organisation
Admin plugin and social logins
Browser back button after signing out lets you get inside private route
How do I setup bearer auth for social logins?
Resseting password
CORS error on social auth
useListOrganizations not updated on login or logout
Cannot delete user when sessions are in secondary storage instead of database
Session is always null inside a "before hook"
How do i get the oauth token and save it to the additional fields
Microsoft Social Sign in `Provider did not return email.` despite adding all the API permissions
Can I use Phone Number plugin to just add phone number to existing users?
Pending state is not changing even after the data is available.
Dynamic trustedOrigins
Update active organization after creation
Prisma + Supabase
Type error: Property 'getFullOrganization' does not exist on type 'InferAPI
useSession cannot reach get-session endpoint
Hash the password
Organization haPermission and checkRolePermissions help
Argument `token` is missing.
Additional Fields default value not being applied (drizzle)
Session fetched in the middleware doesn't update on every request.
linkSocial with custom OAuth providers
Client side session isn't removed after deleting user
I need help in working with better Auth of email & password in sveltekit.
Has anyone used getSession() with tRPC callers?
Better Auth X Jstack integration
Google one-tap sign-in not working may bcoz of FedCM error
Newbie issue
CLI cant generate using SvelteKits $app import
type missing on server side ?
How to set additional fields in auth.api.createOrganization?
remove name and email requirement
Type Error - Nuxt 3
Only login if specific field set to true
Resend Verification Email
Unable to sign up using email / password
Admin Plugin: API Error Unauthorized
Deployed social signin fails with prisma adapter
Better Auth + Vercel Preview Deployements + Nuxt 3
error when want to create a passkey
Slow API
I would like to create a flutter betterauth_client package
What is the Better Auth equivalent to the Next Auth Callbacks?
how to have protected social login (whitelisted emails)
Type instantiation is excessively deep and possibly infinite.
Better Auth + Solid Start
Type mismatch between auth.api.getSession and typeof user.$inferSelect
Getting UNPROCESSABLE_ENTITY when attempting to sign up a new user
Getting INVALID_USERNAME_OR_PASSWORD Error when using correct credentials
Help in resolving CORS issue with Better Auth
Protected routes
Setting session/cookie after OAuth redirect
Cant able to validate totp( google authenticator)
Server additionalFields Error
Can i implement better-auth in the common backend? Or microservices?
OAuth skill issue
Is Better Auth edge compatible?
[Solved] use google auth to access other google apis (e.g. Calendar/Drive)
Support for MSSQL (SQL Server) via Kysely
500 Internal Server Error
Downside to calling getSession() in SvelteKit hooks?
Added additional field, but authClient.signUp.email doesnt accept it
Best place to store user "settings"?
Adjusting Default User
Client hooks always return 404
How to add custom tables to prisma.schema?
TypeError [TypeError: The "payload" argument must be of type object. Received null]
auth.api.listUsers returns UNAUTHORIZED but I am admin
Magic link on mobile app
Nuxt SSR useActiveOrganization
Impossible to call the expression useListOrganizations
How to send verification code on signup hook
Generic OAuth SSO (server side) in sveltekit
The returned data type from session on server is incorrect
How do you register a user with the email otp plugin
Is it safe to implement organizations or will they be changing?
Roles And Permissions
myCustomErrorCodes
Expo - can't login with social provider
Expo types mismatch
getCookie() does not exist on authClient - Expo plugin errors
ERROR Better Auth INTERNAL_SERVER_ERROR TypeError: value.getTime is not a function
Custom tables - The field "userId" does not exist in the schema for the model "account"
Ways to authenticate non-js api?
How to add the sign-in button to the wrapper?
Typescript - database hook type inference for additional fields
Is it possible to edit the core schema?
Should BETTER_AUTH_URL be equal in both prod and dev?
Create a user without name
Typescript - how to infer additional, non-database fields during registration
How to sign up/in without password
Golang and nextjs
OIDC Provider Plans
SignInEmail with auth on custom table doesn't work
Expo session with google OAuth
TypeError: Response body object should not be disturbed or locked
custom fields for credential signup
OIDC Setup
Secure cookies not working in production
What about old expired rows? Who should clean them?
Can't list organizations on Vue client
Hono + Nextjs
useSession hook is just returning session token
Multiple roles for users in organizations
Organization access control
Cannot create organizations
Cors Error on Elysia with Node Adapter
Phone OTP failing silently
better-auth with MERN app
TOTP URI Error After getting scanned by Google Authenticator
Can't Build in Turborepo with tsup
change password as support
How can I make the user ID an auto-incrementing integer?
Delete User with Token gives error
session' does not exist in twoFactor
Is there documentation on running code on a specific event (ie signin)?
Is it possible to auth both nextjs and mobile app (android/iOS)?
I couldn't store the cookie in the browser after successful login
With Organization plugin, `getFullOrganization` and `setActive` is always returning `null`
on verifying email OTP, it fails.
Convention for getting the session and types?
Enterprise org auth?
How to use `organizationLimit` with function? Why it returns boolean?
`autoSignInAfterVerification` is not working for me.
Something broken with the customSession
empty session in custom plugin hook
fix TypeError baseURL
internalConnectMultiple error in hono nodejs
Middleware signout
Organizations database hooks
Additional Fields for user not inferred in Client Session
Is it possible to use nextJS and ExpressJs?
Using Generic OAuth plugin to link social
organization plugin client is formatting the metadata json with escape
Auth error for Cloudflare D1 Migrations over remote environments
Build error after migrating to React 19 and Next.js 15
How to set up the database with drizzleAdapter + D1 using Hono on Cloudflare Workers
Use deleteUser() without verification?