[PR #1716] [MERGED] fix: getSessionCookie function and improve docs. #3955

Closed
opened 2026-03-13 11:24:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1716
Author: @ahmed-m-abbass
Created: 3/7/2025
Status: Merged
Merged: 3/12/2025
Merged by: @Bekacru

Base: mainHead: fix--getSessionCookie-function


📝 Commits (2)

  • 2ec6e09 fix: getSessionCookie function and improve docs.
  • 99ffdc4 docs: fix typo

📊 Changes

2 files changed (+24 additions, -4 deletions)

View changed files

📝 docs/content/docs/integrations/next.mdx (+12 -1)
📝 packages/better-auth/src/cookies/index.ts (+12 -3)

📄 Description

Improved the logic in getSessionCookie() to correctly handle secure prefix and added useSecureCookies config.
closes #1487.


🔄 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/1716 **Author:** [@ahmed-m-abbass](https://github.com/ahmed-m-abbass) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/12/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix--getSessionCookie-function` --- ### 📝 Commits (2) - [`2ec6e09`](https://github.com/better-auth/better-auth/commit/2ec6e09880dbfe922ae267f752f6ae2a3958aba8) fix: getSessionCookie function and improve docs. - [`99ffdc4`](https://github.com/better-auth/better-auth/commit/99ffdc4b567af9c4f6ce66b40db1172481de6808) docs: fix typo ### 📊 Changes **2 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/next.mdx` (+12 -1) 📝 `packages/better-auth/src/cookies/index.ts` (+12 -3) </details> ### 📄 Description Improved the logic in getSessionCookie() to correctly handle secure prefix and added useSecureCookies config. closes #1487. --- <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 11:24:48 -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#3955