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

Closed
opened 2026-04-13 10:32:11 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8813

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8813 **State:** closed **Merged:** Yes --- ## 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. -->
GiteaMirror added the pull-request label 2026-04-13 10:32:11 -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#16476