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 202bf09 commit deaf5c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/client-ts/src/app/connections/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function Layout({
children: React.ReactNode;
}>) {
const { session } = useStytchSession();
console.log("session inside connections page is "+ JSON.stringify(session))
const router = useRouter();
useEffect(() => {
if(config.DISTRIBUTION !== "selfhost" && !session){
Expand Down
4 changes: 2 additions & 2 deletions apps/client-ts/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export async function middleware(request: NextRequest) {
return response;
}

const sessionJWT = request.cookies.get("stytch_session_jwt")?.value;
/*const sessionJWT = request.cookies.get("stytch_session_jwt")?.value;
console.log(sessionJWT)
if (!sessionJWT) {
return NextResponse.redirect(new URL("/b2c/login", request.url));
Expand All @@ -203,7 +203,7 @@ export async function middleware(request: NextRequest) {
return NextResponse.next();
} catch (e) {
return NextResponse.redirect(new URL("/b2c/login", request.url));
}
}*/

/*const sessionJWT = request.cookies.get("session")?.value;
Expand Down

0 comments on commit deaf5c4

Please sign in to comment.