[GH-ISSUE #6956] Being able to overwrite the default authorizationEndpoint for social providers #19314

Closed
opened 2026-04-15 18:14:05 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Johann13 on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6956

Originally assigned to: @bytaesu on GitHub.

Is this suited for github?

  • Yes, this is suited for github

When testing on different environments the authorization endpoint url might be different.
For example twitch provides a cli to test features locally this requires to overwrite the authorization url to use localhost.

Describe the solution you'd like

Add authorizationEndpoint or createAuthorizationURL as an optional parameter to ProviderOptions like refreshAccessToken or disableDefaultScope.

Describe alternatives you've considered

The only alternative I can think of right now is to write a custom auth flow for local testing.

Additional context

No response

Originally created by @Johann13 on GitHub (Dec 23, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6956 Originally assigned to: @bytaesu on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. When testing on different environments the authorization endpoint url might be different. For example twitch provides a cli to test features locally this requires to overwrite the authorization url to use localhost. ### Describe the solution you'd like Add authorizationEndpoint or createAuthorizationURL as an optional parameter to ProviderOptions like refreshAccessToken or disableDefaultScope. ### Describe alternatives you've considered The only alternative I can think of right now is to write a custom auth flow for local testing. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-15 18:14:05 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Dec 23, 2025):

It looks like you're requesting a feature that would allow for overwriting the default authorizationEndpoint for social providers when testing in different environments. This could be particularly useful for local testing, such as using Twitch's CLI to point to localhost.

There is currently an enhancement proposal under consideration that suggests adding parameters like authorizationEndpoint or createAuthorizationURL to the ProviderOptions, similar to how refreshAccessToken or disableDefaultScope work. This could address your requirement as it would allow for customization of the authorization URL dynamically during different testing scenarios [1].

If you want to track any updates or participate in the discussion regarding this feature, consider following the associated GitHub issue. Meanwhile, if you have any specific questions about setting up your environments or other features, feel free to ask! What social provider are you planning to implement this for?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3686987047 --> @better-auth-agent[bot] commented on GitHub (Dec 23, 2025): It looks like you're requesting a feature that would allow for overwriting the default `authorizationEndpoint` for social providers when testing in different environments. This could be particularly useful for local testing, such as using Twitch's CLI to point to localhost. There is currently an enhancement proposal under consideration that suggests adding parameters like `authorizationEndpoint` or `createAuthorizationURL` to the `ProviderOptions`, similar to how `refreshAccessToken` or `disableDefaultScope` work. This could address your requirement as it would allow for customization of the authorization URL dynamically during different testing scenarios [[1]](https://github.com/better-auth/better-auth/issues/2351). If you want to track any updates or participate in the discussion regarding this feature, consider following the associated GitHub issue. Meanwhile, if you have any specific questions about setting up your environments or other features, feel free to ask! What social provider are you planning to implement this for? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Author
Owner

@bytaesu commented on GitHub (Dec 23, 2025):

Hi @Johann13, I'm looking into this

<!-- gh-comment-id:3687697195 --> @bytaesu commented on GitHub (Dec 23, 2025): Hi @Johann13, I'm looking into this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19314