[GH-ISSUE #5688] [Better Auth]: unable_to_create_user (google auth) #27648

Closed
opened 2026-04-17 18:46:45 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @CalmNerd on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/5688

###here is the issue I am getting:

using nextjs 16 with default dependencies;

prisma:error
Invalid db[model].create() invocation in
C:\Users\hp\Desktop\projects\component-awesome.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44

9510 if (!db[model]) {
9511 throw new TURBOPACK__imported__module$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$$28$ecmascript$29$["BetterAuthError"](Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate');
9512 }
→ 9513 return await db[model].create({
data: {
identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH",
value: "{"callbackURL":"http://localhost:3000","codeVerifier":"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG","expiresAt":1761848051567}",
expiresAt: new Date("2025-10-30T18:14:11.567Z"),
createdAt: new Date("2025-10-30T18:04:11.567Z"),
updatedAt: new Date("2025-10-30T18:04:11.567Z"),
id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk",
+ token: String
},
select: undefined
})

Argument token is missing.
2025-10-30T18:04:13.509Z ERROR [Better Auth]:
Invalid db[model].create() invocation in
C:\Users\hp\Desktop\projects\component-awesome.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44

9510 if (!db[model]) {
9511 throw new TURBOPACK__imported__module$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$$28$ecmascript$29$["BetterAuthError"](Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate');
9512 }
→ 9513 return await db[model].create({
data: {
identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH",
value: "{"callbackURL":"http://localhost:3000","codeVerifier":"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG","expiresAt":1761848051567}",
expiresAt: new Date("2025-10-30T18:14:11.567Z"),
createdAt: new Date("2025-10-30T18:04:11.567Z"),
updatedAt: new Date("2025-10-30T18:04:11.567Z"),
id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk",
+ token: String
},
select: undefined
})

Argument token is missing.

SERVER_ERROR: Error [PrismaClientValidationError]:

Invalid db[model].create() invocation in
C:\Users\hp\Desktop\projects\component-awesome.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44

9510 if (!db[model]) {
9511 throw new TURBOPACK__imported__module$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$$28$ecmascript$29$["BetterAuthError"](Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate');
9512 }
→ 9513 return await db[model].create({
data: {
identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH",
value: "{"callbackURL":"http://localhost:3000","codeVerifier":"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG","expiresAt":1761848051567}",
expiresAt: new Date("2025-10-30T18:14:11.567Z"),
createdAt: new Date("2025-10-30T18:04:11.567Z"),
updatedAt: new Date("2025-10-30T18:04:11.567Z"),
id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk",
+ token: String
},
select: undefined
})

Argument token is missing.
at ignore-listed frames {
clientVersion: '6.18.0'
}
POST /api/auth/sign-in/social 500 in 8.8s (compile: 6.0s, proxy.ts: 27ms, render: 2.7s)

###this is my prisma schema and config:
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

generator client {
provider = "prisma-client"
output = "../lib/generated/prisma"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

model User {
id String @id @default(cuid())
email String @unique
name String?
image String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

accounts Account[]
sessions Session[]
votes Vote[]
bookmarks Bookmark[]
libraries Library[] @relation("OwnerLibraries")
emailVerified Boolean @default(false)

@@map("user")
}

model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
access_token String?
expires_at Int?
refresh_token String?
token_type String?
scope String?
id_token String?
session_state String?

user User @relation(fields: [userId], references: [id], onDelete: Cascade)

accountId String
providerId String
accessToken String?
refreshToken String?
idToken String?
accessTokenExpiresAt DateTime?
refreshTokenExpiresAt DateTime?
password String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@unique([provider, providerAccountId])
@@map("account")
}

model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
expiresAt DateTime
token String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
ipAddress String?
userAgent String?

@@unique([token])
@@map("session")
}

model Library {
id String @id @default(cuid())
ownerId String
owner User @relation("OwnerLibraries", fields: [ownerId], references: [id], onDelete: Cascade)
repoFullName String @unique // e.g. "vercel/next.js"
title String
description String?
tags String[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

metrics RepoMetrics?
votes Vote[]
bookmarks Bookmark[]
}

model RepoMetrics {
id String @id @default(cuid())
libraryId String @unique
stars Int @default(0)
forks Int @default(0)
etag String?
rateLimitRemaining Int?
lastCheckedAt DateTime @default(now())
fetchedAt DateTime @default(now())

library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade)
}

model Vote {
id String @id @default(cuid())
userId String
libraryId String
value Int // +1 like, -1 dislike
createdAt DateTime @default(now())

user User @relation(fields: [userId], references: [id], onDelete: Cascade)
library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade)

@@unique([userId, libraryId])
@@index([libraryId])
}

model Bookmark {
id String @id @default(cuid())
userId String
libraryId String
createdAt DateTime @default(now())

user User @relation(fields: [userId], references: [id], onDelete: Cascade)
library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade)

@@unique([userId, libraryId])
@@index([libraryId])
}

model Verification {
id String @id
identifier String
value String
expiresAt DateTime
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt

@@map("verification")
}

config:

import "dotenv/config";
import { defineConfig, env } from "prisma/config";

export default defineConfig({
schema: "prisma/schema.prisma",
migrations: {
path: "prisma/migrations",
},
engine: "classic",
datasource: {
url: env("DATABASE_URL"),
},
});

###I have generated and migrated as well:

PS C:\Users\hp\Desktop\projects\component-awesome> npx prisma migrate dev --name init
Loaded Prisma config from prisma.config.ts.

Prisma config detected, skipping environment variable loading.
Prisma schema loaded from prisma\schema.prisma
Datasource "db": PostgreSQL database "neondb", schema "public" at "ep-dawn-rain-adsrfk2u-pooler.c-2.us-east-1.aws.neon.tech"

Applying migration 20251030180136_init

The following migration(s) have been created and applied from new schema changes:

prisma\migrations/
└─ 20251030180136_init/
└─ migration.sql

Your database is now in sync with your schema.

✔ Generated Prisma Client (6.18.0) to .\lib\generated\prisma in
288ms

PS C:\Users\hp\Desktop\projects\component-awesome> npx prisma generate
Loaded Prisma config from prisma.config.ts.

Prisma config detected, skipping environment variable loading.
Prisma schema loaded from prisma\schema.prisma

✔ Generated Prisma Client (6.18.0) to .\lib\generated\prisma in 289ms

Originally created by @CalmNerd on GitHub (Oct 30, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/5688 ###here is the issue I am getting: using nextjs 16 with default dependencies; prisma:error Invalid `db[model].create()` invocation in C:\Users\hp\Desktop\projects\component-awesome\.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44 9510 if (!db[model]) { 9511 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["BetterAuthError"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`); 9512 } → 9513 return await db[model].create({ data: { identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH", value: "{\"callbackURL\":\"http://localhost:3000\",\"codeVerifier\":\"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG\",\"expiresAt\":1761848051567}", expiresAt: new Date("2025-10-30T18:14:11.567Z"), createdAt: new Date("2025-10-30T18:04:11.567Z"), updatedAt: new Date("2025-10-30T18:04:11.567Z"), id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk", + token: String }, select: undefined }) Argument `token` is missing. 2025-10-30T18:04:13.509Z ERROR [Better Auth]: Invalid `db[model].create()` invocation in C:\Users\hp\Desktop\projects\component-awesome\.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44 9510 if (!db[model]) { 9511 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["BetterAuthError"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`); 9512 } → 9513 return await db[model].create({ data: { identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH", value: "{\"callbackURL\":\"http://localhost:3000\",\"codeVerifier\":\"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG\",\"expiresAt\":1761848051567}", expiresAt: new Date("2025-10-30T18:14:11.567Z"), createdAt: new Date("2025-10-30T18:04:11.567Z"), updatedAt: new Date("2025-10-30T18:04:11.567Z"), id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk", + token: String }, select: undefined }) Argument `token` is missing. # SERVER_ERROR: Error [PrismaClientValidationError]: Invalid `db[model].create()` invocation in C:\Users\hp\Desktop\projects\component-awesome\.next\dev\server\chunks\node_modules_better-auth_dist_bdad6f8a._.js:9513:44 9510 if (!db[model]) { 9511 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f40$better$2d$auth$2f$core$2f$dist$2f$error$2f$index$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["BetterAuthError"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`); 9512 } → 9513 return await db[model].create({ data: { identifier: "b8x2yVg7fVhaiphXomR6MqwXf0wqNGsH", value: "{\"callbackURL\":\"http://localhost:3000\",\"codeVerifier\":\"b01pJXxz5denrJXiUOoa38GR7eIviLDkJbY1kGpJb19hse-7hBzIM1VgUTS1SiwMKIbyHOU1ToSAE3zduO8D8K_sB9ho6ltW-7GhyTgJKDkTx9LWKhA3I4vrSOedSZGG\",\"expiresAt\":1761848051567}", expiresAt: new Date("2025-10-30T18:14:11.567Z"), createdAt: new Date("2025-10-30T18:04:11.567Z"), updatedAt: new Date("2025-10-30T18:04:11.567Z"), id: "LKPE9y8KR7OuVtcGELlXOW5d2YubQ5kk", + token: String }, select: undefined }) Argument `token` is missing. at ignore-listed frames { clientVersion: '6.18.0' } POST /api/auth/sign-in/social 500 in 8.8s (compile: 6.0s, proxy.ts: 27ms, render: 2.7s) ###this is my prisma schema and config: // This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client" output = "../lib/generated/prisma" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model User { id String @id @default(cuid()) email String @unique name String? image String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt accounts Account[] sessions Session[] votes Vote[] bookmarks Bookmark[] libraries Library[] @relation("OwnerLibraries") emailVerified Boolean @default(false) @@map("user") } model Account { id String @id @default(cuid()) userId String type String provider String providerAccountId String access_token String? expires_at Int? refresh_token String? token_type String? scope String? id_token String? session_state String? user User @relation(fields: [userId], references: [id], onDelete: Cascade) accountId String providerId String accessToken String? refreshToken String? idToken String? accessTokenExpiresAt DateTime? refreshTokenExpiresAt DateTime? password String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt @@unique([provider, providerAccountId]) @@map("account") } model Session { id String @id @default(cuid()) sessionToken String @unique userId String expires DateTime user User @relation(fields: [userId], references: [id], onDelete: Cascade) expiresAt DateTime token String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt ipAddress String? userAgent String? @@unique([token]) @@map("session") } model Library { id String @id @default(cuid()) ownerId String owner User @relation("OwnerLibraries", fields: [ownerId], references: [id], onDelete: Cascade) repoFullName String @unique // e.g. "vercel/next.js" title String description String? tags String[] createdAt DateTime @default(now()) updatedAt DateTime @updatedAt metrics RepoMetrics? votes Vote[] bookmarks Bookmark[] } model RepoMetrics { id String @id @default(cuid()) libraryId String @unique stars Int @default(0) forks Int @default(0) etag String? rateLimitRemaining Int? lastCheckedAt DateTime @default(now()) fetchedAt DateTime @default(now()) library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade) } model Vote { id String @id @default(cuid()) userId String libraryId String value Int // +1 like, -1 dislike createdAt DateTime @default(now()) user User @relation(fields: [userId], references: [id], onDelete: Cascade) library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade) @@unique([userId, libraryId]) @@index([libraryId]) } model Bookmark { id String @id @default(cuid()) userId String libraryId String createdAt DateTime @default(now()) user User @relation(fields: [userId], references: [id], onDelete: Cascade) library Library @relation(fields: [libraryId], references: [id], onDelete: Cascade) @@unique([userId, libraryId]) @@index([libraryId]) } model Verification { id String @id identifier String value String expiresAt DateTime createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt @@map("verification") } config: import "dotenv/config"; import { defineConfig, env } from "prisma/config"; export default defineConfig({ schema: "prisma/schema.prisma", migrations: { path: "prisma/migrations", }, engine: "classic", datasource: { url: env("DATABASE_URL"), }, }); ###I have generated and migrated as well: PS C:\Users\hp\Desktop\projects\component-awesome> npx prisma migrate dev --name init Loaded Prisma config from prisma.config.ts. Prisma config detected, skipping environment variable loading. Prisma schema loaded from prisma\schema.prisma Datasource "db": PostgreSQL database "neondb", schema "public" at "ep-dawn-rain-adsrfk2u-pooler.c-2.us-east-1.aws.neon.tech" Applying migration `20251030180136_init` The following migration(s) have been created and applied from new schema changes: prisma\migrations/ └─ 20251030180136_init/ └─ migration.sql Your database is now in sync with your schema. ✔ Generated Prisma Client (6.18.0) to .\lib\generated\prisma in 288ms PS C:\Users\hp\Desktop\projects\component-awesome> npx prisma generate Loaded Prisma config from prisma.config.ts. Prisma config detected, skipping environment variable loading. Prisma schema loaded from prisma\schema.prisma ✔ Generated Prisma Client (6.18.0) to .\lib\generated\prisma in 289ms
GiteaMirror added the lockedbug labels 2026-04-17 18:46:45 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 30, 2025):

Hi @CalmNerd! I'm Dosu and I’m helping the better-auth team.

The error happens because Better Auth is trying to insert a token field into your Verification model, but your Prisma schema for Verification doesn't have a token field. This mismatch causes the Prisma validation error during Google authentication.

To fix this, add a token field to your Verification model in your Prisma schema, like this:

model Verification {
  id         String   @id
  identifier String
  value      String
  expiresAt  DateTime
  createdAt  DateTime @default(now())
  updatedAt  DateTime @default(now()) @updatedAt
  token      String?  // <-- add this line

  @@map("verification")
}

After updating your schema, run:

npx prisma migrate dev --name add_verification_token
npx prisma generate

This should resolve the error and allow user creation/authentication to work as expected with Google auth. This fix is supported by similar issues and discussions in the Better Auth community, where schema mismatches—especially missing fields like token—cause these errors during social authentication [source].

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3469432639 --> @dosubot[bot] commented on GitHub (Oct 30, 2025): <!-- Greeting --> Hi @CalmNerd! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> The error happens because Better Auth is trying to insert a `token` field into your `Verification` model, but your Prisma schema for `Verification` doesn't have a `token` field. This mismatch causes the Prisma validation error during Google authentication. To fix this, add a `token` field to your `Verification` model in your Prisma schema, like this: ```prisma model Verification { id String @id identifier String value String expiresAt DateTime createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt token String? // <-- add this line @@map("verification") } ``` After updating your schema, run: ``` npx prisma migrate dev --name add_verification_token npx prisma generate ``` This should resolve the error and allow user creation/authentication to work as expected with Google auth. This fix is supported by similar issues and discussions in the Better Auth community, where schema mismatches—especially missing fields like `token`—cause these errors during social authentication [[source](https://github.com/better-auth/better-auth/issues/1901)]. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a916cd6c-e356-43fa-b87c-0d6db7af6978?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5688)
Author
Owner

@CalmNerd commented on GitHub (Nov 13, 2025):

I am not using Mongo I am using postgres with prisma

<!-- gh-comment-id:3525869644 --> @CalmNerd commented on GitHub (Nov 13, 2025): I am not using Mongo I am using postgres with prisma
Author
Owner

@dosubot[bot] commented on GitHub (Nov 13, 2025):

No worries—this solution is for PostgreSQL with Prisma too. The error happens because Better Auth expects a token field in your Verification model during social (Google) authentication, regardless of which database you use. Adding token String? to your Verification model, running a migration, and regenerating your Prisma client will resolve the issue. This is a common requirement for Better Auth with Prisma and PostgreSQL, confirmed by other users and maintainers in similar situations example example.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3525882016 --> @dosubot[bot] commented on GitHub (Nov 13, 2025): <!-- Answer --> No worries—this solution is for PostgreSQL with Prisma too. The error happens because Better Auth expects a token field in your Verification model during social (Google) authentication, regardless of which database you use. Adding token String? to your Verification model, running a migration, and regenerating your Prisma client will resolve the issue. This is a common requirement for Better Auth with Prisma and PostgreSQL, confirmed by other users and maintainers in similar situations [example](https://github.com/better-auth/better-auth/issues/846) [example](https://github.com/better-auth/better-auth/issues/1901). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4e146ba7-5d58-4f22-bf75-98759edaae4c?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5688)
Author
Owner

@Manishbhai9350 commented on GitHub (Jan 19, 2026):

Soo why do we have to add it mannualy why it does not add the token while generating the schema better-auth ???

<!-- gh-comment-id:3768254577 --> @Manishbhai9350 commented on GitHub (Jan 19, 2026): Soo why do we have to add it mannualy why it does not add the token while generating the schema better-auth ???
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27648