Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Session Error - Better Auth
BA
Better Auth
•
7mo ago
•
1 reply
MATX
Session Error
[ Server
] Error
:
Invalid
db[getModelName(model)].update()
db[getModelName(model)].update()
invocation in
/Users
/mkrakel
/Projekte
/app
.legalbot
.de
/
.next
/server
/chunks
/ssr
/node
_modules
_better
-auth
_dist
6657fa
.
.
j
s
:
7
7
6
5
:62
7762
}
7763 const whereClause
= convertWhereClause
(model
, where
)
;
7764 const transformed
= transformInput
(update
, model
,
"update
"
)
;
→ 7765 const result
= await db
[getModelName
(model
)
]
.update
(
{
where
:
{
token
:
"a1ENZXChPWQAgzS0h2SR0bH9XDHE4ZoL
"
,
? id
?
: String
,
? AND
?
: SessionWhereInput
| SessionWhereInput
[
]
,
? OR
?
: SessionWhereInput
[
]
,
? NOT
?
: SessionWhereInput
| SessionWhereInput
[
]
,
? expiresAt
?
: DateTimeFilter
| DateTime
,
? createdAt
?
: DateTimeFilter
| DateTime
,
? updatedAt
?
: DateTimeFilter
| DateTime
,
? ipAddress
?
: StringNullableFilter
| String
| Null
,
? userAgent
?
: StringNullableFilter
| String
| Null
,
? userId
?
: StringFilter
| String
,
? impersonatedBy
?
: StringNullableFilter
| String
| Null
,
? user
?
: UserScalarRelationFilter
| UserWhereInput
}
,
data
:
{
expiresAt
: new Date
(
"2025
-07
-
2
7
T
1
3
:
5
7
:16
.265Z
"
)
}
}
)
Argument
where
where
of type SessionWhereUniqueInput needs at least one of
id
id
arguments
. Available options are marked with
?
.
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
MongoDB Duplicate Key Session Error
BA
Better Auth / help
10mo ago
Application error when session is expired
BA
Better Auth / help
14mo ago