Skip to content

Commit

Permalink
feat(homeserver): log cookies on auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Oct 11, 2024
1 parent e749a68 commit eacf942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pubky-homeserver/src/routes/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use tower_cookies::{
};

use pubky_common::{crypto::random_bytes, session::Session, timestamp::Timestamp};
use tracing::debug;

use crate::{
database::tables::{
Expand Down Expand Up @@ -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()?;
Expand Down

0 comments on commit eacf942

Please sign in to comment.