[PR #2080] [CLOSED] feat(genericOAuth & sso): Optional force user info to be retrieved from endpoint #4143

Closed
opened 2026-03-13 11:34:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2080
Author: @codylittle
Created: 4/2/2025
Status: Closed

Base: v1.3Head: feat/force-userinfo


📝 Commits (10+)

  • 708c358 add boolean operator to getUserInfo to force the user profile to be retrieved from the userInfo endpoint
  • 25c0d04 chore: formatting
  • afc7e2f chore: release v1.2.12
  • eb65159 chore: release v1.2.12
  • f8e2b69 chore: release v1.2.12
  • e7eed8c docs: update banner
  • 7f9fa93 use always fetch user info instead
  • 0e8a92b docs: update docs
  • cf2713a Merge branch 'main' into feat/force-userinfo
  • 3404f0a Merge branch 'v1.3' into feat/force-userinfo

📊 Changes

9 files changed (+79 additions, -411 deletions)

View changed files

📝 demo/nextjs/package.json (+0 -1)
📝 docs/app/page.tsx (+8 -6)
📝 docs/content/docs/plugins/generic-oauth.mdx (+18 -1)
📝 docs/content/docs/plugins/sso.mdx (+2 -0)
📝 packages/better-auth/src/integrations/svelte-kit.ts (+0 -2)
📝 packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts (+15 -15)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+22 -6)
📝 packages/better-auth/src/plugins/sso/index.ts (+14 -1)
📝 pnpm-lock.yaml (+0 -379)

📄 Description

Add an optional boolean config to force the user profile to be retrieved from configured or discovered userInfo endpoint.

Docs updated to reflect changes too.

Resolves #2003


🔄 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/2080 **Author:** [@codylittle](https://github.com/codylittle) **Created:** 4/2/2025 **Status:** ❌ Closed **Base:** `v1.3` ← **Head:** `feat/force-userinfo` --- ### 📝 Commits (10+) - [`708c358`](https://github.com/better-auth/better-auth/commit/708c358c2a7b47cd4655e3ad4b00f0a74bf70bdb) add boolean operator to getUserInfo to force the user profile to be retrieved from the userInfo endpoint - [`25c0d04`](https://github.com/better-auth/better-auth/commit/25c0d0475d774f2104094940136047b500dc0c9b) chore: formatting - [`afc7e2f`](https://github.com/better-auth/better-auth/commit/afc7e2fb85abf8839cc07a28ce834c4caac56842) chore: release v1.2.12 - [`eb65159`](https://github.com/better-auth/better-auth/commit/eb651594af8efdb6a1a26a5edc1a652c8e34d796) chore: release v1.2.12 - [`f8e2b69`](https://github.com/better-auth/better-auth/commit/f8e2b693b95795606f45b668eb379e9a2b287a81) chore: release v1.2.12 - [`e7eed8c`](https://github.com/better-auth/better-auth/commit/e7eed8c848740fc22dc12e1b82cad8a42155249e) docs: update banner - [`7f9fa93`](https://github.com/better-auth/better-auth/commit/7f9fa938ff36351999345a58be0a950e19eedc09) use always fetch user info instead - [`0e8a92b`](https://github.com/better-auth/better-auth/commit/0e8a92b633fe2d6388ac404d01c5784704546a6b) docs: update docs - [`cf2713a`](https://github.com/better-auth/better-auth/commit/cf2713a2683ce721777fc262608432c584d0a306) Merge branch 'main' into feat/force-userinfo - [`3404f0a`](https://github.com/better-auth/better-auth/commit/3404f0ab6a9ccef621d82ead5fc2f25f925d4545) Merge branch 'v1.3' into feat/force-userinfo ### 📊 Changes **9 files changed** (+79 additions, -411 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/package.json` (+0 -1) 📝 `docs/app/page.tsx` (+8 -6) 📝 `docs/content/docs/plugins/generic-oauth.mdx` (+18 -1) 📝 `docs/content/docs/plugins/sso.mdx` (+2 -0) 📝 `packages/better-auth/src/integrations/svelte-kit.ts` (+0 -2) 📝 `packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts` (+15 -15) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+22 -6) 📝 `packages/better-auth/src/plugins/sso/index.ts` (+14 -1) 📝 `pnpm-lock.yaml` (+0 -379) </details> ### 📄 Description Add an optional boolean config to force the user profile to be retrieved from configured or discovered `userInfo` endpoint. Docs updated to reflect changes too. Resolves #2003 --- <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 11:34:13 -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#4143