Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/adapter-node-redis/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_REDIS_URL=redis://localhost:6379
NODE_REDIS_PASSWORD=
28 changes: 28 additions & 0 deletions packages/adapter-node-redis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<p align="center">
<br/>
<a href="https://authjs.dev" target="_blank">
<img height="64px" src="https://authjs.dev/img/logo-sm.png" />
</a>
<a href="https://redis.io/docs/latest/develop/clients/nodejs" target="_blank">
<img height="64px" src="https://avatars.githubusercontent.com/u/1529926"/>
</a>
<h3 align="center"><b>Node Redis Adapter</b> - NextAuth.js / Auth.js</a></h3>
<p align="center" style="align: center;">
<a href="https://npm.im/@auth/node-redis-adapter">
<img src="https://img.shields.io/badge/TypeScript-blue?style=flat-square" alt="TypeScript" />
</a>
<a href="https://npm.im/@auth/node-redis-adapter">
<img alt="npm" src="https://img.shields.io/npm/v/@auth/node-redis-adapter?color=green&label=@auth/node-redis-adapter&style=flat-square">
</a>
<a href="https://www.npmtrends.com/@auth/node-redis-adapter">
<img src="https://img.shields.io/npm/dm/@auth/node-redis-adapter?label=%20downloads&style=flat-square" alt="Downloads" />
</a>
<a href="https://github.com/nextauthjs/next-auth/stargazers">
<img src="https://img.shields.io/github/stars/nextauthjs/next-auth?style=flat-square" alt="GitHub Stars" />
</a>
</p>
</p>

---

Check out the documentation at [authjs.dev](https://authjs.dev/reference/adapter/node-redis).
5 changes: 5 additions & 0 deletions packages/adapter-node-redis/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
redis:
image: redis
ports:
- "6379:6379"
53 changes: 53 additions & 0 deletions packages/adapter-node-redis/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@auth/node-redis-adapter",
"version": "1.0.0",
"description": "Node Redis adapter for Auth.js.",
"homepage": "https://authjs.dev",
"repository": "https://github.com/nextauthjs/next-auth",
"bugs": {
"url": "https://github.com/nextauthjs/next-auth/issues"
},
"author": "github.com/lengerrong",
"type": "module",
"types": "./index.d.ts",
"files": [
"*.js",
"*.d.ts*",
"src"
],
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
}
},
"license": "ISC",
"keywords": [
"next-auth",
"next.js",
"oauth",
"node",
"redis"
],
"private": false,
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
},
"peerDependencies": {
"redis": "^5.7.0",
"uuid": "^11.1.0"
},
"devDependencies": {
"@types/uuid": "^8.3.3",
"redis": "^5.7.0",
"dotenv": "^10.0.0"
}
}
Loading