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?
No description
3 Replies
Henry
HenryOP5mo ago
Any ideas on this one? @bekacru Big fan of the library, I'd love to get it working on the edge runtime
bekacru
bekacru5mo ago
Seems like the issue is coming from the underlying library. I’ll take a look
Henry
HenryOP4mo ago
Thank you 🙌

Did you find this page helpful?