[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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?