Relative Content

Tag Archive for node.jsnext.jsnext-authioredis

Using Redis with Auth.js and Next.js Middleware on Edge Runtime: ‘dns’ Module Error

I’m using Auth.js (v5) as the authentication library in a Next.js application. I’m using Unstorage as a Database Adapter to store session data in a key-value storage. The storage works fine with In Memory storage, but that’s not suitable for production, so I’m switching to Redis storage. Unstorage uses ioredis under the hood to connect to Redis.