Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Error [TypeError]: Cannot read properties of undefined (reading 'encrypted') - Better Auth
BA
Better Auth
•
10mo ago
•
3 replies
Henry
Error [TypeError]: Cannot read properties of undefined (reading 'encrypted')
I
'm trying to set up Better Auth on the Next
.js edge runtime using toNodeHandler
(required for the pages router
)
, but I
'm getting the above error
.
Has anyone managed to get it working on the edge runtime with the pages router
?
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
⨯ TypeError: Cannot read properties of undefined (reading 'bind')
BA
Better Auth / help
8mo ago
INTERNAL_SERVER_ERROR TypeError: Cannot read properties of undefined (reading 'valueOf')
BA
Better Auth / help
4mo ago
Getting SERVER_ERROR: TypeError: Cannot read properties of undefined (reading 'validate')
BA
Better Auth / help
11mo ago