SessionContext (api/session.rs)

spacedrive · core/src/infra/api/session.rs · rust · Apache-2.0
auth

! Session context and authentication types ! ! This module defines the rich session context that gets passed to all operations, ! replacing the simple library_id parameter with comprehensive session information.

// Source: https://github.com/spacedriveapp/spacedrive | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Session context and authentication types
//!
//! This module defines the rich session context that gets passed to all operations,
//! replacing the simple library_id parameter with comprehensive session information.

use serde::{Deserialize, Serialize};
use specta::Type;
use std::collections::HashMap;
use uuid::Uuid;

/// Rich session context passed to all operations
/// This replaces the simple library_id parameter with comprehensive session info
#[derive(Debug, Clone, Serialize, Deserialize, Type)]
pub struct SessionContext {
	/// Authentication information for this session

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key