Custom Redis Adapter support for session persistence #4987
Unanswered
sumodhnair19
asked this question in
Help
Replies: 1 comment 1 reply
-
Link to the docs: https://next-auth.js.org/providers/credentials. It states that for I guess I'll try to implement a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hi,
Thank you for such a fantastic library. I was going through the documentation but didn't find any mention of connecting to custom configured
Redis
without the use ofUpstash
for a persistentsession store
.My use case is very simple. I am using
Nginx
as a load balancer between multiple nodes for mynextJS
application and I would like to persist thesession
if in case the user logs in and refreshes the page asNginx
switches between nodes. I am using the credentials provider ofnext-auth
as I have a Django-based auth system already available.I did see the implementation of the
next-auth
adapter withUpstash
. However, I have my own custom server running with Redis.I tried connecting to
redis
usingioredis
which seems to connect. However, I am not sure how can I useredis
here withnext-auth
to persist session and validate at the same time?Thanks for the help.
How to reproduce ☕️
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions