[PR #6962] [MERGED] feat(oauth): add custom authorizationEndpoint option #15240

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6962
Author: @bytaesu
Created: 12/23/2025
Status: Merged
Merged: 1/12/2026
Merged by: @himself65

Base: canaryHead: 2025-12-24/feat/custom-authorization-endpoint


📝 Commits (4)

  • 7a98668 feat: add authorizationEndpoint option
  • 418134c test: add test case for authorizationEndpoint
  • 020c528 docs: add socialProvider option reference
  • 88ef0da Update docs/content/docs/reference/options.mdx

📊 Changes

4 files changed (+54 additions, -1 deletions)

View changed files

📝 docs/content/docs/reference/options.mdx (+18 -0)
📝 packages/core/src/oauth2/create-authorization-url.ts (+1 -1)
📝 packages/core/src/oauth2/oauth-provider.ts (+6 -0)
📝 test/unit/oauth/index.spec.ts (+29 -0)

📄 Description

Closes https://github.com/better-auth/better-auth/issues/6956


Summary by cubic

Adds an authorizationEndpoint option to OAuth providers so you can override the default authorization URL. This helps test against local or sandbox OAuth servers.

  • New Features
    • ProviderOptions.authorizationEndpoint to override the provider’s authorization URL.
    • createAuthorizationURL uses the custom endpoint when provided; docs updated and a unit test verifies the override.

Written for commit 88ef0dafed. 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/6962 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 12/23/2025 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-12-24/feat/custom-authorization-endpoint` --- ### 📝 Commits (4) - [`7a98668`](https://github.com/better-auth/better-auth/commit/7a98668151cd8ab70bd6ad4c797d666fe4859207) feat: add authorizationEndpoint option - [`418134c`](https://github.com/better-auth/better-auth/commit/418134cc1c40bb35aa5b27d0ff2837014be9ba16) test: add test case for authorizationEndpoint - [`020c528`](https://github.com/better-auth/better-auth/commit/020c5286cebef5b7cf8f25e23cc68b546d404ae5) docs: add socialProvider option reference - [`88ef0da`](https://github.com/better-auth/better-auth/commit/88ef0dafede60ffb8738ecd62a70205e2b744ade) Update docs/content/docs/reference/options.mdx ### 📊 Changes **4 files changed** (+54 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/reference/options.mdx` (+18 -0) 📝 `packages/core/src/oauth2/create-authorization-url.ts` (+1 -1) 📝 `packages/core/src/oauth2/oauth-provider.ts` (+6 -0) 📝 `test/unit/oauth/index.spec.ts` (+29 -0) </details> ### 📄 Description Closes https://github.com/better-auth/better-auth/issues/6956 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds an authorizationEndpoint option to OAuth providers so you can override the default authorization URL. This helps test against local or sandbox OAuth servers. - **New Features** - ProviderOptions.authorizationEndpoint to override the provider’s authorization URL. - createAuthorizationURL uses the custom endpoint when provided; docs updated and a unit test verifies the override. <sup>Written for commit 88ef0dafede60ffb8738ecd62a70205e2b744ade. 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:54:34 -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#15240