Skip to content

Commit 3cbcbd3

Browse files
committed
feat: add logging for session cookies in proxy function
- Implemented console logging for session cookies in the proxy function to aid in debugging and monitoring authentication flow.
1 parent 2d13e71 commit 3cbcbd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

proxy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { NextResponse } from 'next/server';
44

55
export async function proxy(request: NextRequest) {
66
const cookies = getSessionCookie(request);
7+
console.log('cookies', cookies);
78
if (!cookies) {
89
return NextResponse.redirect(new URL('/register', request.url));
910
}

0 commit comments

Comments
 (0)