[PR #7000] [MERGED] fix(oauth-provider): only session db store currently supported #23917

Closed
opened 2026-04-15 22:03:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7000
Author: @dvanmali
Created: 12/25/2025
Status: Merged
Merged: 12/25/2025
Merged by: @dvanmali

Base: canaryHead: opSession


📝 Commits (1)

  • b843b05 fix: error early, sessionId db-store currently supported

📊 Changes

2 files changed (+8 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/oauth-provider.mdx (+3 -3)
📝 packages/oauth-provider/src/oauth.ts (+5 -0)

📄 Description

OAuth Provider Plugin only supports db session secondary-storage due to use of session id.

Closes: #6995

Fail fast in oauthProvider when sessions aren’t stored in the database, since only DB-backed sessionId is supported. Docs now clarify sessionId refers to the issuing, still-active session, and oauthAccessToken.userId is optional.

Written for commit b843b05957. Summary will update automatically on new commits.


🔄 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/7000 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 12/25/2025 **Status:** ✅ Merged **Merged:** 12/25/2025 **Merged by:** [@dvanmali](https://github.com/dvanmali) **Base:** `canary` ← **Head:** `opSession` --- ### 📝 Commits (1) - [`b843b05`](https://github.com/better-auth/better-auth/commit/b843b05957be2090abb7aed864bff3512e8a7b4b) fix: error early, sessionId db-store currently supported ### 📊 Changes **2 files changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/oauth-provider.mdx` (+3 -3) 📝 `packages/oauth-provider/src/oauth.ts` (+5 -0) </details> ### 📄 Description OAuth Provider Plugin only supports db session secondary-storage due to use of session id. Closes: #6995 Fail fast in oauthProvider when sessions aren’t stored in the database, since only DB-backed sessionId is supported. Docs now clarify sessionId refers to the issuing, still-active session, and oauthAccessToken.userId is optional. <sub>Written for commit b843b05957be2090abb7aed864bff3512e8a7b4b. Summary will update automatically on new commits.</sub> --- <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 22:03:39 -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#23917