From eacf942d08da76bb7a4fb8380054a664ccdfe547 Mon Sep 17 00:00:00 2001 From: nazeh Date: Fri, 11 Oct 2024 16:44:39 +0300 Subject: [PATCH] feat(homeserver): log cookies on auth --- pubky-homeserver/src/routes/auth.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pubky-homeserver/src/routes/auth.rs b/pubky-homeserver/src/routes/auth.rs index 034d29c..654c030 100644 --- a/pubky-homeserver/src/routes/auth.rs +++ b/pubky-homeserver/src/routes/auth.rs @@ -15,6 +15,7 @@ use tower_cookies::{ }; use pubky_common::{crypto::random_bytes, session::Session, timestamp::Timestamp}; +use tracing::debug; use crate::{ database::tables::{ @@ -138,6 +139,8 @@ pub async fn signin( } cookie.set_http_only(true); + debug!(?cookie, "Created, saved and sending a new Session cookie"); + cookies.add(cookie); wtxn.commit()?;