better-auth
better-auth copied to clipboard
fix: allow signIn.social by utilizing discovery url
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 is attempting to deploy a commit to the better-auth Team on Vercel.
A member of the Team first needs to authorize it.
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