[PR #169] [CLOSED] feat: JWT & JWKS Plugin #11386

Closed
opened 2026-04-13 07:44:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/169
Author: @KaanMol
Created: 10/14/2024
Status: Closed

Base: mainHead: main


📝 Commits (4)

  • 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

📊 Changes

7 files changed (+362 additions, -18 deletions)

View changed files

📝 packages/better-auth/package.json (+2 -1)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)
packages/better-auth/src/plugins/jwt/adapter.ts (+37 -0)
packages/better-auth/src/plugins/jwt/index.ts (+168 -0)
packages/better-auth/src/plugins/jwt/schema.ts (+30 -0)
packages/better-auth/src/plugins/jwt/utils.ts (+55 -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/169 **Author:** [@KaanMol](https://github.com/KaanMol) **Created:** 10/14/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`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 ### 📊 Changes **7 files changed** (+362 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/package.json` (+2 -1) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) ➕ `packages/better-auth/src/plugins/jwt/adapter.ts` (+37 -0) ➕ `packages/better-auth/src/plugins/jwt/index.ts` (+168 -0) ➕ `packages/better-auth/src/plugins/jwt/schema.ts` (+30 -0) ➕ `packages/better-auth/src/plugins/jwt/utils.ts` (+55 -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-04-13 07:44:23 -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#11386