Closed andrienpecson closed 1 year ago
Hi @andrienpecson, thanks for raising this.
This error seems to be a matter of compatibility of the Redis library you're using with the Edge runtime. Not sure this is a SDK issue.
Yep - ioredis
requires the Node.js runtime (see also https://github.com/luin/ioredis/issues/769#issuecomment-1480869051)
@Widcket @adamjmcgrath Thank You for the reply, but is there any recommended library I can use for this matter?
@andrienpecson - I used @upstash/redis
when I was testing it in https://github.com/adamjmcgrath/nextjs-auth0-redis-session
Any storage client that works on Vercel's Edge runtime will work.
I am seeing this error running locally on my laptop.
Checklist
Description
I am currently implementing a custom SessionStore to bypass the large cookie issue. In the
auth0.ts
, I am usingioredis
as the Redis library. The problem is that I am encountering an issue when NextJs is generating the pages.Reproduction
auth0.ts
auth0Config
middleware.ts
Issue![Screenshot 2023-06-08 at 18 13 21](https://github.com/auth0/nextjs-auth0/assets/13114319/9bae6d55-3bf2-4c8a-bc49-bc0debee3c80)
Additional context
No response
nextjs-auth0 version
2.4.0
Next.js version
13
Node.js version
16.16.0