diff --git a/docs/content/docs/integrations/next.mdx b/docs/content/docs/integrations/next.mdx index f6cbe4c70d..8c8d903572 100644 --- a/docs/content/docs/integrations/next.mdx +++ b/docs/content/docs/integrations/next.mdx @@ -132,7 +132,7 @@ In Next.js middleware, it's recommended to only check for the existence of a ses You can use the `getSessionCookie` helper from Better Auth for this purpose: -The getSessionCookie() function does not automatically reference the auth config specified in auth.ts. Therefore, you need to ensure that the configuration in getSessionCookie() matches the config defined in your auth.ts. +The getSessionCookie() function does not automatically reference the auth config specified in auth.ts. Therefore, if you customized the cookie name or prefix, you need to ensure that the configuration in getSessionCookie() matches the config defined in your auth.ts. ```ts