[PR #7290] [CLOSED] feat(social-provider): support custom URL options to github #7201

Closed
opened 2026-03-13 13:27:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7290
Author: @himself65
Created: 1/12/2026
Status: Closed

Base: canaryHead: himself65/2026/01/12/github


📝 Commits (1)

  • a0f26e7 feat(github): add custom URL options to enhance flexibility

📊 Changes

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

View changed files

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

📄 Description

Closes: https://github.com/better-auth/better-auth/pull/2049


Summary by cubic

Add optional URL overrides to the GitHub provider for token, refresh, and user info endpoints. This enables GitHub Enterprise and proxy setups while keeping defaults unchanged.

Written for commit a0f26e7ace. Summary will update 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/7290 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/12/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2026/01/12/github` --- ### 📝 Commits (1) - [`a0f26e7`](https://github.com/better-auth/better-auth/commit/a0f26e7aceecfa6c786f8751908d1c91d760115c) feat(github): add custom URL options to enhance flexibility ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/social-providers/github.ts` (+10 -3) </details> ### 📄 Description Closes: https://github.com/better-auth/better-auth/pull/2049 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add optional URL overrides to the GitHub provider for token, refresh, and user info endpoints. This enables GitHub Enterprise and proxy setups while keeping defaults unchanged. - **New Features** - GithubOptions: tokenEndpointUrl, refreshTokenUrl, userInfoUrl. - Overrides are used for token exchange, refresh, and user info requests. - Defaults: access_token https://github.com/login/oauth/access_token, refresh https://github.com/login/oauth/token, user info https://api.github.com/user. <sup>Written for commit a0f26e7aceecfa6c786f8751908d1c91d760115c. Summary will update 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-03-13 13:27:46 -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#7201