mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-28 09:56:25 -05:00
chore: remove unnecessary options on getSessionCookie
Update next.mdx
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user