better-auth icon indicating copy to clipboard operation
better-auth copied to clipboard

fix: allow signIn.social by utilizing discovery url

Open dvanmali opened this issue 3 months ago • 2 comments

Fixes issue of authorization url not being discovered by social provider.

This addition also enables signIn.social beyond just signIn.oauth2.

Closes: #3278


Summary by cubic

Use OIDC discovery to resolve the authorization URL in generic OAuth, fixing social login flows. Enables signIn.social for providers configured with discoveryUrl.

  • Bug Fixes
    • Fetch authorization_endpoint from discoveryUrl when provided.
    • Apply authorizationUrlParams to the discovered authorization URL.
    • Add test covering signIn.social with a discovered auth URL and correct redirect.

dvanmali avatar Sep 25 '25 23:09 dvanmali

@dvanmali is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 25 '25 23:09 vercel[bot]

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@4917
@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@4917
@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@4917
@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@4917
@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@4917
@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@4917

commit: 1ba326f

pkg-pr-new[bot] avatar Sep 25 '25 23:09 pkg-pr-new[bot]