From 109b8523eb934141c50f1c0c82ddec217d86cac5 Mon Sep 17 00:00:00 2001 From: mrjones-plip Date: Fri, 26 Jan 2024 21:04:25 -0800 Subject: [PATCH] print AuthSession cookie --- src/public/app/fragment_home.html | 4 +++- src/routes/app.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/fragment_home.html b/src/public/app/fragment_home.html index 85cae48b..bfcd27db 100644 --- a/src/public/app/fragment_home.html +++ b/src/public/app/fragment_home.html @@ -1,8 +1,10 @@ +
+

AuthSession: {{ chtcookie }}

{% include "place/list.html" %}
-
\ No newline at end of file + diff --git a/src/routes/app.ts b/src/routes/app.ts index adda51f9..10dec7ed 100644 --- a/src/routes/app.ts +++ b/src/routes/app.ts @@ -39,6 +39,7 @@ export default async function sessionCache(fastify: FastifyInstance) { scheduledJobCount: scheduledJobs.length, session: req.chtSession, op, + chtcookie: JSON.stringify(req.cookies.AuthSession), }; return resp.view('src/public/app/view.html', tmplData);