/* 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) 2024 metamuffin */ use chrono::{DateTime, Utc}; use jellycommon::user::{PermissionSet, User}; use serde::{Deserialize, Serialize}; 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, permissions: PermissionSet, }