[PR #1219] [MERGED] feat: support Microsoft Entra ID select_account prompt #20596

Closed
opened 2026-04-15 19:48:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1219
Author: @t3duk
Created: 1/15/2025
Status: Merged
Merged: 1/15/2025
Merged by: @Bekacru

Base: mainHead: iss1209


📝 Commits (3)

  • 544fa6f feat: add optional prompt to create auth url
  • 0baeaff feat: add prompt option to microsoft config
  • 7f7c864 docs: add requireSelectAccount option

📊 Changes

3 files changed (+25 additions, -12 deletions)

View changed files

📝 docs/content/docs/authentication/microsoft.mdx (+13 -12)
📝 packages/better-auth/src/oauth2/create-authorization-url.ts (+5 -0)
📝 packages/better-auth/src/social-providers/microsoft-entra-id.ts (+7 -0)

📄 Description

Adds a requireSelectAccount option to Microsoft Entra ID so that when true even if the user is logged in with only one Microsoft account they have to choose their account. Defaults to false.

Closes #1209


🔄 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/1219 **Author:** [@t3duk](https://github.com/t3duk) **Created:** 1/15/2025 **Status:** ✅ Merged **Merged:** 1/15/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `iss1209` --- ### 📝 Commits (3) - [`544fa6f`](https://github.com/better-auth/better-auth/commit/544fa6ff9584cc832b886288bce6961deb310887) feat: add optional prompt to create auth url - [`0baeaff`](https://github.com/better-auth/better-auth/commit/0baeaff8db286bd6a23a8673d94edf07bfe83f2e) feat: add prompt option to microsoft config - [`7f7c864`](https://github.com/better-auth/better-auth/commit/7f7c864e3d3a5eedd26e2766d303eb5b558f0c8a) docs: add requireSelectAccount option ### 📊 Changes **3 files changed** (+25 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/microsoft.mdx` (+13 -12) 📝 `packages/better-auth/src/oauth2/create-authorization-url.ts` (+5 -0) 📝 `packages/better-auth/src/social-providers/microsoft-entra-id.ts` (+7 -0) </details> ### 📄 Description Adds a `requireSelectAccount` option to Microsoft Entra ID so that when `true` even if the user is logged in with only one Microsoft account they have to choose their account. Defaults to `false`. Closes #1209 --- <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-15 19:48:21 -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#20596