[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


2 Replies
Auth.js | Edge Compatibility
Authentication for the Web
I think you need to read this.
If you haven't already solved this problem