Skip to content

Commit

Permalink
print AuthSession cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones-plip committed Jan 27, 2024
1 parent 37eed36 commit 109b852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/public/app/fragment_home.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

<div class="tile is-child" hx-ext="sse" sse-connect="/events/connection">
<p><h1><code>AuthSession:</code> {{ chtcookie }}</h1></p>
<div id="places_parent" class="tile is-child" hx-get="/events/places_list" hx-target="#place_tables"
hx-swap="innerHTML" hx-trigger="sse:places_state_change">
<div id="place_tables">
{% include "place/list.html" %}
</div>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions src/routes/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 109b852

Please sign in to comment.