Theo's Typesafe CultTTC
Theo's Typesafe Cult13mo ago
4 replies
M4N14X

[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
image.png
image.png
Was this page helpful?