[PR #178] [MERGED] feat: JWT & JWKS Plugin #3143

Closed
opened 2026-03-13 10:41:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/178
Author: @KaanMol
Created: 10/15/2024
Status: Merged
Merged: 10/16/2024
Merged by: @Bekacru

Base: mainHead: feature/jwt-plugin


📝 Commits (9)

  • d8fe98b feat: 🚧 Created JWT plugin with some basic functionality
  • 9f9ea25 Updated the jwks endpoint
  • 9290057 Added the key id to the token header for validation purposes
  • 39789ca Refactored private encryption to one column
  • 6f1aade Merge remote-tracking branch 'origin/main' into feature/jwt-plugin
  • 318e1d5 feat: Add JWT plugin to sidebar and create JWT documentation page
  • ef48b55 test: Added tests for JWT plugin
  • ce23c91 Merge remote-tracking branch 'origin/main' into feature/jwt-plugin
  • 8dbeb14 Fixed linting

📊 Changes

11 files changed (+680 additions, -17 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+5 -0)
docs/content/docs/plugins/jwt.mdx (+206 -0)
📝 packages/better-auth/package.json (+1 -0)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)
packages/better-auth/src/plugins/jwt/adapter.ts (+35 -0)
packages/better-auth/src/plugins/jwt/client.ts (+9 -0)
packages/better-auth/src/plugins/jwt/index.ts (+193 -0)
packages/better-auth/src/plugins/jwt/jwt.test.ts (+68 -0)
packages/better-auth/src/plugins/jwt/schema.ts (+30 -0)
packages/better-auth/src/plugins/jwt/utils.ts (+63 -0)
📝 pnpm-lock.yaml (+69 -17)

📄 Description

This plug-in adds thus far the following features:

  • An endpoint to get the JWKS
  • An endpoint to retrieve the user token (if no JWK exists in the database, this will be created)

🔄 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/178 **Author:** [@KaanMol](https://github.com/KaanMol) **Created:** 10/15/2024 **Status:** ✅ Merged **Merged:** 10/16/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feature/jwt-plugin` --- ### 📝 Commits (9) - [`d8fe98b`](https://github.com/better-auth/better-auth/commit/d8fe98b8976c00388cec0e0a6d007ef4cc8187c8) feat: :construction: Created JWT plugin with some basic functionality - [`9f9ea25`](https://github.com/better-auth/better-auth/commit/9f9ea25a262e1511fb5fffd5cc50c7f03cf21204) Updated the jwks endpoint - [`9290057`](https://github.com/better-auth/better-auth/commit/9290057b921ee004de538fc7d8866510cd068523) Added the key id to the token header for validation purposes - [`39789ca`](https://github.com/better-auth/better-auth/commit/39789cacfc5c6f09dbbcda7c9f7a7124188a846f) Refactored private encryption to one column - [`6f1aade`](https://github.com/better-auth/better-auth/commit/6f1aade5fdf65ae7667a35f558c63f7433d2e868) Merge remote-tracking branch 'origin/main' into feature/jwt-plugin - [`318e1d5`](https://github.com/better-auth/better-auth/commit/318e1d5f0c33e80076d7f1e0786ee39b0d9ed164) feat: Add JWT plugin to sidebar and create JWT documentation page - [`ef48b55`](https://github.com/better-auth/better-auth/commit/ef48b5516a20425f32c6687d6d4a9458ca7ceb9b) test: :white_check_mark: Added tests for JWT plugin - [`ce23c91`](https://github.com/better-auth/better-auth/commit/ce23c91fc3d05ddf0d25b025261cbd9c6dc83998) Merge remote-tracking branch 'origin/main' into feature/jwt-plugin - [`8dbeb14`](https://github.com/better-auth/better-auth/commit/8dbeb1495329a6426c16b3c54a6e570025e7ca1a) Fixed linting ### 📊 Changes **11 files changed** (+680 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+5 -0) ➕ `docs/content/docs/plugins/jwt.mdx` (+206 -0) 📝 `packages/better-auth/package.json` (+1 -0) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) ➕ `packages/better-auth/src/plugins/jwt/adapter.ts` (+35 -0) ➕ `packages/better-auth/src/plugins/jwt/client.ts` (+9 -0) ➕ `packages/better-auth/src/plugins/jwt/index.ts` (+193 -0) ➕ `packages/better-auth/src/plugins/jwt/jwt.test.ts` (+68 -0) ➕ `packages/better-auth/src/plugins/jwt/schema.ts` (+30 -0) ➕ `packages/better-auth/src/plugins/jwt/utils.ts` (+63 -0) 📝 `pnpm-lock.yaml` (+69 -17) </details> ### 📄 Description This plug-in adds thus far the following features: - An endpoint to get the JWKS - An endpoint to retrieve the user token (if no JWK exists in the database, this will be created) --- <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-03-13 10:41:30 -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#3143