22 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
42
views
No failed login feedback using BetterAuth and SolidStart
Building a small login form for my first SolidJS project using BetterAuth.
I've got the database setup, both a client AND server instance of better-auth going, etc.
In my login form handler, I have ...
0
votes
1
answer
82
views
Better-Auth $Infer Session Type Breaks after upgrading to 1.4
After upgrading to Better-Auth 1.4.x the user object in the Session object failed to be inferred correctly using the recommended
type Session = typeof auth.$Infer.Session
user additional fields no ...
2
votes
2
answers
474
views
How do I resolve `state_mismatch` error with Google OAuth in a Next.js app using Better Auth?
I have a Next.js application with Better Auth setup. I can sign up and log in fine using email and password. I implemented OAuth sign in with Google, but that only worked once or twice. If I somehow ...
0
votes
0
answers
82
views
TRPC prefetching fails on protected procedure
I was working on a nextjs monorepo using trpc as backend I am integrating SSE with normal trpc methods, I implemented auth using better auth and it works very smoothly, but when I try to prefetch on ...
0
votes
1
answer
43
views
Why session token still has expiry date?
NextJs + BetterAuth
Why session token still has expiry date no matter what I do?
Example of auth.ts:
export const auth = betterAuth({
database: new Database("./sqlite.db"),
...
1
vote
1
answer
97
views
better-auth: Unable to create schema for genericOauth with sqlite in nuxt
I'm setting up my nuxt project and I want to configure better-auth to use my companies Oauth2/OIDC provider to authenticate against with the genericOauth plugin. When running npx @better-auth/cli@...
0
votes
1
answer
365
views
Better-auth not passing cookie after signIn using Google
I have BE written in Hono, that is providing auth using better-auth and Expo app that consumes it (I am using ios in development, not Expo Go). I m working with cookie-based auth that is proposed by ...
0
votes
0
answers
110
views
BetterAuth api endpoints not working in Nuxt 3 app when deployed to cloudflare pages
So I am making Nuxt 3 application which I am deploying to Cloudflare pages.
My techstack is:
Nuxt 3
Postgres.js
Zod
DrizzleORM
BetterAuth
First I had problems with deploy and pg package so I ...
1
vote
0
answers
270
views
Better Auth cookies not saving in frontend after sign-in on Vercel deployment with Express/MongoDB
I'm building a full-stack application using Bun, Express, Node.js, MongoDB, and Better Auth for authentication. The app works perfectly on localhost, but after deploying to Vercel, cookies are not ...
0
votes
1
answer
72
views
Nuxt4 + BetterAuth layout - navbar
I'm using Nuxt 4 with Better Auth and Supabase, and I have a component in the default layout with a navbar. The navbar doesn't update dynamically — it only reflects changes after I manually refresh ...
0
votes
1
answer
127
views
Error: column "displayUsername" of relation "users" does not exist in better-auth 1.3.6 and 1.3.7
I am getting the following error when I try to update a username in better-auth from a sveltekit client
# SERVER_ERROR: error: column "displayUsername" of relation "users" does ...
0
votes
0
answers
117
views
Trying to pass UserID to API through form. The ID is retrieved, but doesn't seem to be passed
I'm making an event management application. I'm using better-auth & mongodb. I got a form in which I can create an event. Now, alongside the event name, and dates I want to pass along the owner's ...
0
votes
1
answer
276
views
Prisma + Neon + better-auth: Failed to create user Error [PrismaClientValidationError]
The error after clicking signup button (the minified code is so long so I left out unimportant part)
2025年07月31日T13:14:19.733Z ERROR [Better Auth]: Failed to create user Error [...
0
votes
0
answers
128
views
Error in better-auth with organization creation in the afterEmailVerification callback
I'm trying create an organization automatically when a user verifies their email using the afterEmailVerification callback.
import { headers } from 'next/headers'
afterEmailVerification: async (user, ...
1
vote
1
answer
94
views
passing additional fields with oauth google provider using better auth
I have additional fields on the user schema that are required for user creation and I have already added them as part of additional fields plugin
The additional fields are role and isOnboarded, and I ...