nextauthjs / nextauthjs/next-auth

Support for generic Redis adapter

Open
#8,285 6 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accepted adapters enhancement
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:

Contributing 🙌🏽

Yes, I am willing to help implement this feature in a PR

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.