From 69ef90dfd7f86b43defafa30dddaefeb774119f7 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Thu, 22 May 2025 11:34:54 -0700 Subject: [PATCH] docs: imporve nextjs callout for getSessionCookie --- docs/content/docs/integrations/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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