nextauthjs / nextauthjs/next-auth
Support for generic Redis adapter
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28.4k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
Description 📓
Hi team! Great project! I'm curious if there's any interest in developing an adapter for generic Redis connections that could work with Redis or Google Memory Store. I was able to adapt the Upstash Redis adapter into a custom Redis using "ioredis" as the Node.js client but it seems like an adapter that could benefit the Auth.js community. I have used https://github.com/tj/connect-redis extensively before for Node.js sessions and this could fit a similar use case.
How to reproduce ☕️
References:
- https://authjs.dev/reference/adapter/upstash-redis
- https://ably.com/blog/migrating-from-node-redis-to-ioredis
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing Upstash Redis adapter reference with the proposed generic Redis use case, then review the ioredis migration reference. Done means a documented adapter can work with generic Redis connections, including Redis or Google Memory Store, while fitting the Auth.js adapter model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, redis, typescript
- Domain
- authentication, backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100