feat(homeserver): log cookies on auth

This commit is contained in:
nazeh
2024-10-11 16:44:39 +03:00
parent e749a685cd
commit eacf942d08

View File

@@ -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()?;