[AdapterError] NextAuth with Drizzle Adapter on Edge

Im trying to guard my application from un-authenticated users. Basically if not authenticated redirect to login deal. I have attached a simplified middleware which i use for this purpose. Along with the error message i get when using it. This error only occurs when i use middleware along with NextAuth. Im using t3 stack. Drizzle ORM connecting to Supabase
No description
No description
2 Replies
TOSL
TOSL3mo ago
I think you need to read this. If you haven't already solved this problem

Did you find this page helpful?