[magicLink - drizzleAdapter] The \"payload\" argument must be of type object. Received null
Hey guys, I am struggling to get to the bottom of this issue. I am hosting my backend with
None of the logs defined below get triggered which is weird.
I am using this better-auth version: "better-auth": "1.2.3",
Any ideas? Am I missing something?
---
Here is my /api/auth/[...all] route
The reason I have a
open-next - THis means that it's hosted in a lambda which shouldn't affect anything - My other DB functions work just fine.
- My implementation works locally.
- My hosted database connection works as expected in other parts of my app
None of the logs defined below get triggered which is weird.
I am using this better-auth version: "better-auth": "1.2.3",
Any ideas? Am I missing something?
---
Here is my /api/auth/[...all] route
The reason I have a
getBetterAuth is because I am hosting on opennext & get + set the environment variables at runtime (for security purposes), so hence the reason for a function that will getBetterAuth WHEN it's needed. NOTE: I only initialize the client once, if exists, use existing, else create new client.