[PR #8827] docs: fix missing secret param in getSignedCookie example #16486

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

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

State: closed
Merged: Yes


What does this PR do?

Fixes the remaining typo from #8789 that was missed in #8813.

Changes

  • ctx.getSignedCookie("my-signed-cookie")ctx.getSignedCookie("my-signed-cookie", ctx.context.secret)

Partially resolves #8789


Summary by cubic

Fix the hooks docs example for getSignedCookie by adding the missing secret parameter so the sample works as intended: await ctx.getSignedCookie("my-signed-cookie", ctx.context.secret).

Written for commit 776649dbe3. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8827 **State:** closed **Merged:** Yes --- ## What does this PR do? Fixes the remaining typo from #8789 that was missed in #8813. ## Changes - `ctx.getSignedCookie("my-signed-cookie")` → `ctx.getSignedCookie("my-signed-cookie", ctx.context.secret)` ## Related Issue Partially resolves #8789 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix the hooks docs example for `getSignedCookie` by adding the missing secret parameter so the sample works as intended: `await ctx.getSignedCookie("my-signed-cookie", ctx.context.secret)`. <sup>Written for commit 776649dbe3adeeeb614a53e01bc00975a0fd85bc. 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:22 -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#16486