[GH-ISSUE #4908] Incomplete Sentence In Regards to __secure and __host Within Plugins Documentation #27430

Closed
opened 2026-04-17 18:27:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @JeffreyLind3 on GitHub (Sep 25, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4908

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Go to https://www.better-auth.com/docs/concepts/plugins (or the corresponding source code file).

Current vs. Expected behavior

In the Plugins documentation (https://www.better-auth.com/docs/concepts/plugins) it reads:

It implements things like `__secure` prefix and `__host` prefix for cookies based on

The sentence ends early and does not go on to explain what the decision logic is behind the prefixes. I would fix it but I am currently stuck on figuring out this decision logic myself so I am clueless.

What version of Better Auth are you using?

N/A

System info

N/A

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)

N/A

Additional context

N/A

Originally created by @JeffreyLind3 on GitHub (Sep 25, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4908 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Go to `https://www.better-auth.com/docs/concepts/plugins` (or the corresponding source code file). ### Current vs. Expected behavior In the Plugins documentation (`https://www.better-auth.com/docs/concepts/plugins`) it reads: ``` It implements things like `__secure` prefix and `__host` prefix for cookies based on ``` The sentence ends early and does not go on to explain what the decision logic is behind the prefixes. I would fix it but I am currently stuck on figuring out this decision logic myself so I am clueless. ### What version of Better Auth are you using? N/A ### System info ```bash N/A ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript N/A ``` ### Additional context N/A
GiteaMirror added the locked label 2026-04-17 18:27:02 -05:00
Author
Owner

@JeffreyLind3 commented on GitHub (Sep 25, 2025):

p.s. some documentation on createAuthCookie would be incredible but ofc out of scope of this issue. I feel this is the root of the solution to my issue (I'm having to be super strict with cookies as I am building a HIPAA-compliant auth system, so need to explicitly set __Host cookie prefix), but have to dig through Better Auth's source code to determine what it does / how to use it.

<!-- gh-comment-id:3335753000 --> @JeffreyLind3 commented on GitHub (Sep 25, 2025): p.s. some documentation on `createAuthCookie` would be incredible but ofc out of scope of this issue. I feel this is the root of the solution to my issue (I'm having to be super strict with cookies as I am building a HIPAA-compliant auth system, so need to explicitly set __Host cookie prefix), but have to dig through Better Auth's source code to determine what it does / how to use it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27430