Skip to content

Commit 93893fa

Browse files
add logging for debugging
1 parent 29fd2df commit 93893fa

File tree

2 files changed

+2
-0
lines changed
  • feature-collaboration-ui/frontend/peerprep-collab/src

2 files changed

+2
-0
lines changed

feature-collaboration-ui/frontend/peerprep-collab/src/app/collab/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ function CollabPage() {
151151
try {
152152
const baseUrl = process.env.NEXT_PUBLIC_COLLAB_BASE_URL || "http://localhost:3004";
153153
console.log("[CollabPage] Fetching session with baseUrl:", baseUrl, "auth?", !!token);
154+
console.log("[CollabPage] Checking userURL: process.env.NEXT_PUBLIC_USER_SERVICE_URL =", process.env.NEXT_PUBLIC_USER_SERVICE_URL);
154155

155156
const res = await fetch(`${baseUrl}/sessions/${sessionId}`, {
156157
headers: token ? ({ authorization: `Bearer ${token}` } as HeadersInit) : undefined,

feature-collaboration-ui/frontend/peerprep-collab/src/lib/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export async function redeemTempFromQuery(): Promise<string | null> {
5252
// Prefer session-scoped storage for short-lived collab tokens
5353
sessionStorage.setItem("collabToken", token);
5454
scrubParams(["temp"]);
55+
console.log("[Collab UI Auth] Temp key redeemed, collab token stored in sessionStorage.");
5556

5657
return token;
5758
}

0 commit comments

Comments
 (0)