[PR #7590] [MERGED] test(smoke): secdonary storage with redis #15671

Closed
opened 2026-04-13 10:09:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7590
Author: @himself65
Created: 1/24/2026
Status: Merged
Merged: 1/26/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/23/storage


📝 Commits (8)

📊 Changes

12 files changed (+471 additions, -191 deletions)

View changed files

📝 .cspell/tech-terms.txt (+3 -1)
📝 docker-compose.yml (+11 -2)
📝 docs/content/docs/concepts/database.mdx (+35 -4)
📝 e2e/smoke/package.json (+6 -2)
e2e/smoke/test/redis.spec.ts (+238 -0)
📝 knip.jsonc (+6 -0)
packages/redis-storage/package.json (+39 -0)
packages/redis-storage/src/index.ts (+1 -0)
packages/redis-storage/src/redis-storage.ts (+75 -0)
packages/redis-storage/tsconfig.json (+10 -0)
📝 pnpm-lock.yaml (+47 -12)
test/unit/oauth/index.spec.ts (+0 -170)

📄 Description

Downstream: https://github.com/better-auth/better-auth/pull/7582
Downstream: https://github.com/better-auth/better-auth/pull/7583


Summary by cubic

Adds official Redis secondary storage using ioredis, with end-to-end tests and docs. Also adds a Redis service to docker-compose for local development.

  • New Features

    • New @better-auth/redis-storage package for secondaryStorage.
    • Supports get/set with TTL, delete, listKeys, clear, and keyPrefix.
    • E2E tests for email/password sessions and Google OAuth in stateless mode, including custom authorization endpoint.
    • Docker Compose now includes a Redis service.
  • Docs

    • Added Redis storage guide with install and usage examples, a manual implementation sample, and notes on ioredis standalone/cluster/sentinel support.

Written for commit d838109b8f. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7590 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/24/2026 **Status:** ✅ Merged **Merged:** 1/26/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/23/storage` --- ### 📝 Commits (8) - [`9dd941d`](https://github.com/better-auth/better-auth/commit/9dd941dcb1a0278a79b414e5d3eb84dde5d4b6c5) feat: ioredis - [`d99cb1d`](https://github.com/better-auth/better-auth/commit/d99cb1d2913d31a0e9ca886725ed7dda79b55aa6) test: improve - [`0eea3ab`](https://github.com/better-auth/better-auth/commit/0eea3abe891039671984b587e8def5e0881630fd) docs: update - [`98d510c`](https://github.com/better-auth/better-auth/commit/98d510c9d206b0f9bf11f0a3b5f6db344a473e82) fix: pkg - [`6171983`](https://github.com/better-auth/better-auth/commit/61719836d2ee38a9aa0a6bb9042f1e12ee04c23c) ci: update - [`82201eb`](https://github.com/better-auth/better-auth/commit/82201eb3bff31916533ba6946d7316acc32e162f) fix: prefix - [`b54c0d5`](https://github.com/better-auth/better-auth/commit/b54c0d5922ec59e514fbb1be05abfa1655625da7) docs: update - [`d838109`](https://github.com/better-auth/better-auth/commit/d838109b8ff1037405520858e2a535f539c3de8f) docs: update ### 📊 Changes **12 files changed** (+471 additions, -191 deletions) <details> <summary>View changed files</summary> 📝 `.cspell/tech-terms.txt` (+3 -1) 📝 `docker-compose.yml` (+11 -2) 📝 `docs/content/docs/concepts/database.mdx` (+35 -4) 📝 `e2e/smoke/package.json` (+6 -2) ➕ `e2e/smoke/test/redis.spec.ts` (+238 -0) 📝 `knip.jsonc` (+6 -0) ➕ `packages/redis-storage/package.json` (+39 -0) ➕ `packages/redis-storage/src/index.ts` (+1 -0) ➕ `packages/redis-storage/src/redis-storage.ts` (+75 -0) ➕ `packages/redis-storage/tsconfig.json` (+10 -0) 📝 `pnpm-lock.yaml` (+47 -12) ➖ `test/unit/oauth/index.spec.ts` (+0 -170) </details> ### 📄 Description Downstream: https://github.com/better-auth/better-auth/pull/7582 Downstream: https://github.com/better-auth/better-auth/pull/7583 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds official Redis secondary storage using ioredis, with end-to-end tests and docs. Also adds a Redis service to docker-compose for local development. - **New Features** - New @better-auth/redis-storage package for secondaryStorage. - Supports get/set with TTL, delete, listKeys, clear, and keyPrefix. - E2E tests for email/password sessions and Google OAuth in stateless mode, including custom authorization endpoint. - Docker Compose now includes a Redis service. - **Docs** - Added Redis storage guide with install and usage examples, a manual implementation sample, and notes on ioredis standalone/cluster/sentinel support. <sup>Written for commit d838109b8ff1037405520858e2a535f539c3de8f. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:09:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#15671