mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-26 17:34:21 +01:00
Revert "feat(homeserver): set session cookies expiration date to two years"
This reverts commit e749a685cd.
This commit is contained in:
@@ -6,13 +6,7 @@ use axum::{
|
||||
};
|
||||
use axum_extra::{headers::UserAgent, TypedHeader};
|
||||
use bytes::Bytes;
|
||||
use tower_cookies::{
|
||||
cookie::{
|
||||
time::{Duration, OffsetDateTime},
|
||||
SameSite,
|
||||
},
|
||||
Cookie, Cookies,
|
||||
};
|
||||
use tower_cookies::{cookie::SameSite, Cookie, Cookies};
|
||||
|
||||
use pubky_common::{crypto::random_bytes, session::Session, timestamp::Timestamp};
|
||||
use tracing::debug;
|
||||
@@ -131,7 +125,6 @@ pub async fn signin(
|
||||
let mut cookie = Cookie::new(public_key.to_string(), session_secret);
|
||||
|
||||
cookie.set_path("/");
|
||||
cookie.set_expires(OffsetDateTime::now_utc() + Duration::weeks(104));
|
||||
|
||||
if is_secure(&host) {
|
||||
cookie.set_secure(true);
|
||||
|
||||
Reference in New Issue
Block a user