[PR #1888] [MERGED] fix(linking): pass prompt and access_type into authorization URL during account linking #12295

Closed
opened 2026-04-13 08:18:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1888
Author: @waleedlatif1
Created: 3/19/2025
Status: Merged
Merged: 3/20/2025
Merged by: @Bekacru

Base: mainHead: feat/genericoauthlink


📝 Commits (4)

  • 4c28ea3 fix(linking): pass prompt and access_type into authorization URL during account linking
  • af13954 feat(oauth2): createAuthorizationURL should support accessType and responseType parameters
  • 78ccce0 feat(oauth2): add loginHint and responseMode support in authorization URL generation
  • e803f50 chore: fix types

📊 Changes

11 files changed (+120 additions, -51 deletions)

View changed files

📝 packages/better-auth/src/api/routes/sign-in.ts (+10 -0)
📝 packages/better-auth/src/oauth2/create-authorization-url.ts (+30 -10)
📝 packages/better-auth/src/oauth2/types.ts (+15 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+17 -13)
📝 packages/better-auth/src/social-providers/apple.ts (+12 -9)
📝 packages/better-auth/src/social-providers/facebook.ts (+2 -1)
📝 packages/better-auth/src/social-providers/github.ts (+2 -1)
📝 packages/better-auth/src/social-providers/gitlab.ts (+2 -0)
📝 packages/better-auth/src/social-providers/google.ts (+22 -9)
📝 packages/better-auth/src/social-providers/linkedin.ts (+7 -1)
📝 packages/better-auth/src/social-providers/microsoft-entra-id.ts (+1 -7)

📄 Description

Pass prompt and access_type into authorization URL while linking accounts using genericOAuth plugin.

fixes #1889


🔄 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/1888 **Author:** [@waleedlatif1](https://github.com/waleedlatif1) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/genericoauthlink` --- ### 📝 Commits (4) - [`4c28ea3`](https://github.com/better-auth/better-auth/commit/4c28ea3a176d9871d67107fcf9d31df895568893) fix(linking): pass prompt and access_type into authorization URL during account linking - [`af13954`](https://github.com/better-auth/better-auth/commit/af13954e89f8d7015277faa1e8edc9bf9ba21bb0) feat(oauth2): createAuthorizationURL should support accessType and responseType parameters - [`78ccce0`](https://github.com/better-auth/better-auth/commit/78ccce0c2096127e10eb45328ebc37838aca5fab) feat(oauth2): add loginHint and responseMode support in authorization URL generation - [`e803f50`](https://github.com/better-auth/better-auth/commit/e803f50a94c6413b837c8ff8c00587d9860dcd82) chore: fix types ### 📊 Changes **11 files changed** (+120 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+10 -0) 📝 `packages/better-auth/src/oauth2/create-authorization-url.ts` (+30 -10) 📝 `packages/better-auth/src/oauth2/types.ts` (+15 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+17 -13) 📝 `packages/better-auth/src/social-providers/apple.ts` (+12 -9) 📝 `packages/better-auth/src/social-providers/facebook.ts` (+2 -1) 📝 `packages/better-auth/src/social-providers/github.ts` (+2 -1) 📝 `packages/better-auth/src/social-providers/gitlab.ts` (+2 -0) 📝 `packages/better-auth/src/social-providers/google.ts` (+22 -9) 📝 `packages/better-auth/src/social-providers/linkedin.ts` (+7 -1) 📝 `packages/better-auth/src/social-providers/microsoft-entra-id.ts` (+1 -7) </details> ### 📄 Description Pass `prompt` and `access_type` into authorization URL while linking accounts using `genericOAuth` plugin. fixes #1889 --- <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-13 08:18:00 -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#12295