chore: remove unnecessary options on getSessionCookie

Update next.mdx
This commit is contained in:
KinfeMichael Tariku
2025-04-01 10:08:21 +03:00
committed by GitHub

View File

@@ -143,7 +143,7 @@ export async function middleware(request: NextRequest) {
const sessionCookie = getSessionCookie(request, {
// Optionally pass config if cookie name or prefix is customized in auth config.
cookieName: "session_token",
cookiePrefix: "better-auth",
cookiePrefix: "better-auth"
});
if (!sessionCookie) {