[PR #4367] [CLOSED] WIP: feat(client): add refetch to all clients #5335

Closed
opened 2026-03-13 12:19:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4367
Author: @frectonz
Created: 9/2/2025
Status: Closed

Base: canaryHead: feat/add-refetch-to-all-clients


📝 Commits (2)

  • 7504899 feat: add refetch types
  • cf2661e feat: return refetch in vue client

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/solid/index.ts (+2 -0)
📝 packages/better-auth/src/client/svelte/index.ts (+2 -0)
📝 packages/better-auth/src/client/vue/index.ts (+1 -0)

📄 Description

Closes #3718

Summary by cubic

Expose a typed session.refetch(...) on the Solid and Svelte auth clients. You can now refetch the session with optional query params, fully typed with SessionQueryParams.

  • New Features
    • Session store now includes refetch(queryParams?: { query?: SessionQueryParams }).

🔄 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/4367 **Author:** [@frectonz](https://github.com/frectonz) **Created:** 9/2/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/add-refetch-to-all-clients` --- ### 📝 Commits (2) - [`7504899`](https://github.com/better-auth/better-auth/commit/7504899d2cb056a1f74acf9592663db1a184fab7) feat: add refetch types - [`cf2661e`](https://github.com/better-auth/better-auth/commit/cf2661ec730db50327ad95a0bfccd8a84d08faa1) feat: return `refetch` in vue client ### 📊 Changes **3 files changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/solid/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/svelte/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/vue/index.ts` (+1 -0) </details> ### 📄 Description Closes #3718 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Expose a typed session.refetch(...) on the Solid and Svelte auth clients. You can now refetch the session with optional query params, fully typed with SessionQueryParams. - **New Features** - Session store now includes refetch(queryParams?: { query?: SessionQueryParams }). <!-- 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 12:19:13 -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#5335