[PR #8813] [MERGED] docs: fix incorrect cookie method names in hooks documentation #25130

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8813
Author: @dipan-ck
Created: 3/28/2026
Status: Merged
Merged: 3/28/2026
Merged by: @ping-maxwell

Base: mainHead: docs/fix-cookie-method-typos


📝 Commits (1)

  • 45c3aff docs: fix typos in hooks cookie method names

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 docs/content/docs/concepts/hooks.mdx (+4 -4)

📄 Description

What does this PR do?

Fixes the documentation typos reported in #8789.

Note: This PR only addresses the documentation part of #8789.
The before hook cookie propagation bug is a separate issue
and is not covered here.

Changes

  • ctx.setCookies()ctx.setCookie() (singular)
  • ctx.getCookies()ctx.getCookie() (singular)

Partially resolves #8789


Summary by cubic

Fix incorrect cookie method names in the hooks docs to match the API and prevent confusion. Replaces ctx.setCookies/ctx.getCookies with ctx.setCookie/ctx.getCookie in the method list and examples.

Written for commit 45c3affc71. 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/8813 **Author:** [@dipan-ck](https://github.com/dipan-ck) **Created:** 3/28/2026 **Status:** ✅ Merged **Merged:** 3/28/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `main` ← **Head:** `docs/fix-cookie-method-typos` --- ### 📝 Commits (1) - [`45c3aff`](https://github.com/better-auth/better-auth/commit/45c3affc7168ce77fa5741c9158f53adba5903bb) docs: fix typos in hooks cookie method names ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/hooks.mdx` (+4 -4) </details> ### 📄 Description ## What does this PR do? Fixes the documentation typos reported in #8789. Note: This PR only addresses the **documentation part** of #8789. The before hook cookie propagation bug is a separate issue and is not covered here. ## Changes - `ctx.setCookies()` → `ctx.setCookie()` (singular) - `ctx.getCookies()` → `ctx.getCookie()` (singular) ## Related Issue Partially resolves #8789 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix incorrect cookie method names in the hooks docs to match the API and prevent confusion. Replaces `ctx.setCookies`/`ctx.getCookies` with `ctx.setCookie`/`ctx.getCookie` in the method list and examples. <sup>Written for commit 45c3affc7168ce77fa5741c9158f53adba5903bb. 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-04-15 22:44:04 -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#25130