[PR #909] [MERGED] fix: refersh cookie cache properly when it's expired #3537

Closed
opened 2026-03-13 10:57:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/909
Author: @Bekacru
Created: 12/16/2024
Status: Merged
Merged: 12/16/2024
Merged by: @Bekacru

Base: mainHead: fix/cookie-cache


📝 Commits (3)

  • 34b3b6c fix: set cookie cache properly when it's expired
  • 5b3812b chore: lint
  • 633de47 chore: remove artifact

📊 Changes

5 files changed (+111 additions, -33 deletions)

View changed files

📝 demo/nextjs/lib/auth.ts (+16 -0)
📝 packages/better-auth/src/api/routes/session-api.test.ts (+30 -1)
📝 packages/better-auth/src/api/routes/session.ts (+6 -2)
📝 packages/better-auth/src/cookies/index.ts (+35 -26)
📝 packages/cli/src/utils/get-config.ts (+24 -4)

📄 Description

closes #896


🔄 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/909 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/cookie-cache` --- ### 📝 Commits (3) - [`34b3b6c`](https://github.com/better-auth/better-auth/commit/34b3b6c73282d7ac3e8d8938e0b62441d3258d2a) fix: set cookie cache properly when it's expired - [`5b3812b`](https://github.com/better-auth/better-auth/commit/5b3812bb32f1691f22bcba26333a217269f4d040) chore: lint - [`633de47`](https://github.com/better-auth/better-auth/commit/633de477d6c41cefb546e6cb9732076b142abe9f) chore: remove artifact ### 📊 Changes **5 files changed** (+111 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/lib/auth.ts` (+16 -0) 📝 `packages/better-auth/src/api/routes/session-api.test.ts` (+30 -1) 📝 `packages/better-auth/src/api/routes/session.ts` (+6 -2) 📝 `packages/better-auth/src/cookies/index.ts` (+35 -26) 📝 `packages/cli/src/utils/get-config.ts` (+24 -4) </details> ### 📄 Description closes #896 --- <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 10:57:28 -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#3537