/* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin */ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use crate::database::User; pub mod guard; pub mod token; pub struct Session { pub user: User, } pub struct AdminSession(pub Session); #[derive(Debug, Clone, Serialize, Deserialize)] pub struct SessionData { username: String, expire: DateTime, }