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?

3 Replies