[PR #3373] [MERGED] feat(oidc): add refresh token support to discovery document and token endpoint #4791

Closed
opened 2026-03-13 11:59:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3373
Author: @tinkerer-shubh
Created: 7/14/2025
Status: Merged
Merged: 7/16/2025
Merged by: @Bekacru

Base: mainHead: refresh-token-support


📝 Commits (3)

  • ad4db9c feat(oidc): add refresh token support to discovery document and token endpoint
  • eb5047f types(oidc): ensure grant_types_supported is non-empty tuple
  • 37e0340 fix(oidc): format grant_types_supported array for better readability

📊 Changes

3 files changed (+8 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/plugins/mcp/index.ts (+1 -1)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+1 -1)
📝 packages/better-auth/src/plugins/oidc-provider/types.ts (+6 -2)

📄 Description

closes https://github.com/better-auth/better-auth/issues/3359


Summary by cubic

Added refresh token support to the OIDC discovery document and token endpoint, allowing clients to use the refresh_token grant type.

  • New Features
    • Updated grant_types_supported to include "refresh_token" in OIDC metadata and types.

🔄 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/3373 **Author:** [@tinkerer-shubh](https://github.com/tinkerer-shubh) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `refresh-token-support` --- ### 📝 Commits (3) - [`ad4db9c`](https://github.com/better-auth/better-auth/commit/ad4db9c581a0e6c271125179157322e0a4af7a19) feat(oidc): add refresh token support to discovery document and token endpoint - [`eb5047f`](https://github.com/better-auth/better-auth/commit/eb5047f42f4ce00c22384315a3947b2c7d33c1dd) types(oidc): ensure grant_types_supported is non-empty tuple - [`37e0340`](https://github.com/better-auth/better-auth/commit/37e0340304e33fd4f866dc36739a5cce221712c6) fix(oidc): format grant_types_supported array for better readability ### 📊 Changes **3 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/types.ts` (+6 -2) </details> ### 📄 Description closes https://github.com/better-auth/better-auth/issues/3359 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added refresh token support to the OIDC discovery document and token endpoint, allowing clients to use the refresh_token grant type. - **New Features** - Updated grant_types_supported to include "refresh_token" in OIDC metadata and types. <!-- 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-03-13 11:59:56 -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#4791