[PR #7764] chore: expose refreshUserSessions on internal adapter #7539

Open
opened 2026-03-13 13:40:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7764
Author: @programming-with-ia
Created: 2/2/2026
Status: 🔄 Open

Base: canaryHead: canary


📝 Commits (5)

  • b6a4738 expose refreshUserSessions on internal adapter
  • b345362 Add refreshUserSessions to InternalAdapter interface
  • 29097a5 Merge branch 'canary' into canary
  • 1718ea1 Merge branch 'canary' into canary
  • e18d931 Merge branch 'canary' into canary

📊 Changes

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

View changed files

📝 packages/better-auth/src/db/internal-adapter.ts (+1 -0)
📝 packages/core/src/types/context.ts (+2 -0)

📄 Description

Summary by cubic

Expose refreshUserSessions(user: User) on the InternalAdapter interface and surface it from createInternalAdapter, so apps can trigger session refresh via a stable API. Enables session rotation/invalidation without touching lower-level DB utilities.

fix: https://discord.com/channels/1288403910284935179/1467615950030504006

Written for commit e18d931aa752766fe06aea54660ec81561f61622. Summary will update 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/7764 **Author:** [@programming-with-ia](https://github.com/programming-with-ia) **Created:** 2/2/2026 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (5) - [`b6a4738`](https://github.com/better-auth/better-auth/commit/b6a473882f4742c5fe79dc86973d60b2fdf9d2a0) expose refreshUserSessions on internal adapter - [`b345362`](https://github.com/better-auth/better-auth/commit/b345362fd7f967eea0f5a4c400ed71e391194503) Add refreshUserSessions to InternalAdapter interface - [`29097a5`](https://github.com/better-auth/better-auth/commit/29097a525596202eb269ad394d9ab8ee726d9d0b) Merge branch 'canary' into canary - [`1718ea1`](https://github.com/better-auth/better-auth/commit/1718ea162213c03ece201841c46e244c32ea2e1e) Merge branch 'canary' into canary - [`e18d931`](https://github.com/better-auth/better-auth/commit/e18d931aa752766fe06aea54660ec81561f61622) Merge branch 'canary' into canary ### 📊 Changes **2 files changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/internal-adapter.ts` (+1 -0) 📝 `packages/core/src/types/context.ts` (+2 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Expose `refreshUserSessions(user: User)` on the `InternalAdapter` interface and surface it from `createInternalAdapter`, so apps can trigger session refresh via a stable API. Enables session rotation/invalidation without touching lower-level DB utilities. fix: https://discord.com/channels/1288403910284935179/1467615950030504006 <sup>Written for commit e18d931aa752766fe06aea54660ec81561f61622. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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 13:40:51 -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#7539