[PR #6276] [MERGED] feat(oauth): PKCE support for Github #14808

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6276
Author: @Shridhad
Created: 11/24/2025
Status: Merged
Merged: 11/24/2025
Merged by: @Bekacru

Base: canaryHead: feat/github-pkce


📝 Commits (2)

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 packages/core/src/social-providers/github.ts (+10 -2)

📄 Description

GitHub added support for PKCE in July 2025 for OAuth authentication and it is recommended.

The changes

  • GitHub Authorization url includes code_challenge_method and code_challenge
  • GitHub code exchange includes code_verifier

Summary by cubic

Add PKCE support to GitHub OAuth for improved security and to match GitHub’s latest recommendation. The authorization request now includes a code challenge, and the token exchange uses the code verifier.

Written for commit dc4a66bb10. Summary will update automatically 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/6276 **Author:** [@Shridhad](https://github.com/Shridhad) **Created:** 11/24/2025 **Status:** ✅ Merged **Merged:** 11/24/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/github-pkce` --- ### 📝 Commits (2) - [`391480d`](https://github.com/better-auth/better-auth/commit/391480dfdff57d835dc1a5d49e629986b82cd26f) feat: PKCE support for github - [`dc4a66b`](https://github.com/better-auth/better-auth/commit/dc4a66bb1063aad6cfd6729a7356acfca21e8e53) fix: formatting ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/social-providers/github.ts` (+10 -2) </details> ### 📄 Description GitHub added support for [PKCE](https://github.blog/changelog/2025-07-14-pkce-support-for-oauth-and-github-app-authentication/) in July 2025 for OAuth authentication and it is recommended. The changes - GitHub Authorization url includes `code_challenge_method` and `code_challenge` - GitHub code exchange includes `code_verifier` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add PKCE support to GitHub OAuth for improved security and to match GitHub’s latest recommendation. The authorization request now includes a code challenge, and the token exchange uses the code verifier. <sup>Written for commit dc4a66bb1063aad6cfd6729a7356acfca21e8e53. Summary will update automatically 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 09:38: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#14808