Skip to content

Commit

Permalink
✏️ Test front
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Apr 19, 2024
1 parent 9edf18a commit c405a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/client-ts/src/components/RootLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export const RootLayout = () => {
const router = useRouter()
const base = process.env.NEXT_PUBLIC_WEBAPP_DOMAIN;
const handlePageChange = (page: string) => {
router.push(`${base}/${page}`);
if (page) {
router.push(`${base}/${page}`);
} else {
console.error(`Page ${page} is undefined`);
}
};

const lgBreakpoint = 1024; // Tailwind's 'lg' breakpoint
Expand Down
2 changes: 1 addition & 1 deletion apps/client-ts/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export async function middleware(request: NextRequest) {
revokeSession(request, response);
return response;
}

const sessionJWT = request.cookies.get("stytch_session_jwt")?.value;
console.log(sessionJWT)
if (!sessionJWT) {
Expand Down

0 comments on commit c405a62

Please sign in to comment.