mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-02 04:16:38 -05:00
docs: imporve nextjs callout for getSessionCookie
This commit is contained in:
@@ -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:
|
||||
|
||||
<Callout type="warn">
|
||||
The <code>getSessionCookie()</code> function does not automatically reference the auth config specified in <code>auth.ts</code>. Therefore, you need to ensure that the configuration in <code>getSessionCookie()</code> matches the config defined in your <code>auth.ts</code>.
|
||||
The <code>getSessionCookie()</code> function does not automatically reference the auth config specified in <code>auth.ts</code>. Therefore, if you customized the cookie name or prefix, you need to ensure that the configuration in <code>getSessionCookie()</code> matches the config defined in your <code>auth.ts</code>.
|
||||
</Callout>
|
||||
|
||||
```ts
|
||||
|
||||
Reference in New Issue
Block a user