[PR #2740] [MERGED] fix: Improve the callbackURL parameter for social, oauth, SSO #21364

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2740
Author: @gee1k
Created: 5/22/2025
Status: Merged
Merged: 5/22/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (2)

  • 74b25da fix: Fix the issue where the callbackURL parameter is missing when emailVerified is false using the idToken method for social login
  • c536ac4 fix: Fixed the issue where the callbackURL was missing in the verification email after logging in with the genericOAuth and SSO plugins

📊 Changes

3 files changed (+3 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/sso/index.ts (+1 -0)

📄 Description

Fix the issue where the callbackURL parameter is missing when emailVerified is false using the idToken method for social login.

Fixed: #2729


🔄 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/2740 **Author:** [@gee1k](https://github.com/gee1k) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`74b25da`](https://github.com/better-auth/better-auth/commit/74b25daba6b7c9480fbfb9be96794c1482ea5b0e) fix: Fix the issue where the callbackURL parameter is missing when emailVerified is false using the idToken method for social login - [`c536ac4`](https://github.com/better-auth/better-auth/commit/c536ac433713ff2edf81aa90a54dc5e4a5e2feea) fix: Fixed the issue where the callbackURL was missing in the verification email after logging in with the genericOAuth and SSO plugins ### 📊 Changes **3 files changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/sso/index.ts` (+1 -0) </details> ### 📄 Description Fix the issue where the callbackURL parameter is missing when emailVerified is false using the idToken method for social login. Fixed: #2729 --- <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 20:19:14 -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#21364