From 2fe59180f21b3debf98580393695f167928d75da Mon Sep 17 00:00:00 2001 From: Ahmed Abdellahi Abdat Date: Sat, 11 Oct 2025 19:09:53 +0200 Subject: [PATCH] docs: complete incomplete sentence about cookie prefixes (#5172) Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/content/docs/concepts/plugins.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/docs/concepts/plugins.mdx b/docs/content/docs/concepts/plugins.mdx index cf338893..d260d647 100644 --- a/docs/content/docs/concepts/plugins.mdx +++ b/docs/content/docs/concepts/plugins.mdx @@ -124,7 +124,7 @@ Create Auth endpoints wraps around `createEndpoint` from Better Call. Inside the - `db`: The Kysely instance used by Better Auth to interact with the database. - `adapter`: This is the same as db but it give you `orm` like functions to interact with the database. (we recommend using this over `db` unless you need raw sql queries or for performance reasons) - `internalAdapter`: These are internal db calls that are used by Better Auth. For example, you can use these calls to create a session instead of using `adapter` directly. `internalAdapter.createSession(userId)` -- `createAuthCookie`: This is a helper function that let's you get a cookie `name` and `options` for either to `set` or `get` cookies. It implements things like `__secure` prefix and `__host` prefix for cookies based on +- `createAuthCookie`: This is a helper function that lets you get a cookie `name` and `options` for either to `set` or `get` cookies. It implements things like `__Secure-` prefix for cookies based on whether the connection is secure (HTTPS) or the application is running in production mode. For other properties, you can check the Better Call documentation and the source code .