Skip to content

Commit b185f7c

Browse files
committed
scheduler working - remove debug logs
1 parent 8352ffd commit b185f7c

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/lib/server/getDecryptedJWT.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@ import { getToken, type JWT } from "@auth/core/jwt";
1212
* @returns The decrypted JWT object, or `null` if not authenticated.
1313
*/
1414
export const getDecryptedJWT = async (req: Request): Promise<JWT | null> => {
15-
console.log("[DEBUG] AUTH_SECRET:", env.AUTH_SECRET);
16-
console.log("[DEBUG] Incoming request:", req);
17-
const token = await getToken({
15+
return await getToken({
1816
req,
1917
secret: env.AUTH_SECRET,
20-
secureCookie: env.NODE_ENV === "production",
18+
secureCookie: env["NODE_ENV"] === "production",
2119
});
22-
console.log("[DEBUG] Decrypted JWT:", token);
23-
24-
return token;
25-
// return await getToken({ req, secret: env.AUTH_SECRET });
2620
};

src/lib/server/scheduleExecution.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,6 @@ export const scheduleExecution = async <T>(
5151
},
5252
},
5353
);
54-
const payload = JSON.stringify({
55-
method: "POST",
56-
body: JSON.stringify({
57-
body: JSON.stringify(data),
58-
endpointURL,
59-
runTimestamp: publishTime,
60-
}),
61-
headers: {
62-
"Content-Type": "application/json",
63-
Authorization: `Bearer ${jwt?.id_token}`,
64-
},
65-
});
66-
console.log("[DEBUG] Scheduler request payload:", payload);
6754
} catch (error) {
6855
return fail(500, {
6956
form,

0 commit comments

Comments
 (0)