[PR #6147] [MERGED] feat(jwt): add key rotation #32083

Closed
opened 2026-04-17 22:56:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6147
Author: @Bekacru
Created: 11/20/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Bekacru

Base: canaryHead: fix/jwks


📝 Commits (6)

  • 6184f77 feat(jwt): add key rotation
  • 2419128 remove get latest key
  • 7241818 Update packages/better-auth/src/plugins/jwt/rotation.test.ts
  • b54002b Update docs/content/docs/plugins/jwt.mdx
  • 3708239 Fix/test rotating keys (#6171)
  • 07f362c Merge branch 'canary' into fix/jwks

📊 Changes

9 files changed (+181 additions, -37 deletions)

View changed files

📝 docs/content/docs/plugins/jwt.mdx (+24 -0)
📝 packages/better-auth/src/plugins/jwt/adapter.ts (+5 -12)
📝 packages/better-auth/src/plugins/jwt/index.ts (+17 -4)
📝 packages/better-auth/src/plugins/jwt/jwt.test.ts (+7 -4)
packages/better-auth/src/plugins/jwt/rotation.test.ts (+103 -0)
📝 packages/better-auth/src/plugins/jwt/schema.ts (+4 -0)
📝 packages/better-auth/src/plugins/jwt/sign.ts (+1 -5)
📝 packages/better-auth/src/plugins/jwt/types.ts (+13 -12)
📝 packages/better-auth/src/plugins/jwt/utils.ts (+7 -0)

📄 Description

Introduces key rotation


🔄 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/6147 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/20/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/jwks` --- ### 📝 Commits (6) - [`6184f77`](https://github.com/better-auth/better-auth/commit/6184f77b4418790a8631dd674215df06b3d8894e) feat(jwt): add key rotation - [`2419128`](https://github.com/better-auth/better-auth/commit/241912857eb12804666cf8a09cfc1417903598a9) remove get latest key - [`7241818`](https://github.com/better-auth/better-auth/commit/72418187a4d65f8a9a85b382acebf41056b617a6) Update packages/better-auth/src/plugins/jwt/rotation.test.ts - [`b54002b`](https://github.com/better-auth/better-auth/commit/b54002bfedd0b14e169570d08bc1942e9944d19d) Update docs/content/docs/plugins/jwt.mdx - [`3708239`](https://github.com/better-auth/better-auth/commit/3708239ce6b95bc761bcf82466982c22f0eea458) Fix/test rotating keys (#6171) - [`07f362c`](https://github.com/better-auth/better-auth/commit/07f362c232c2beaf06110deeafb3e3a0b07bff0f) Merge branch 'canary' into fix/jwks ### 📊 Changes **9 files changed** (+181 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/jwt.mdx` (+24 -0) 📝 `packages/better-auth/src/plugins/jwt/adapter.ts` (+5 -12) 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+17 -4) 📝 `packages/better-auth/src/plugins/jwt/jwt.test.ts` (+7 -4) ➕ `packages/better-auth/src/plugins/jwt/rotation.test.ts` (+103 -0) 📝 `packages/better-auth/src/plugins/jwt/schema.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/jwt/sign.ts` (+1 -5) 📝 `packages/better-auth/src/plugins/jwt/types.ts` (+13 -12) 📝 `packages/better-auth/src/plugins/jwt/utils.ts` (+7 -0) </details> ### 📄 Description Introduces key rotation --- <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-17 22:56:50 -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#32083