Skip to main content

systemprompt_security/session/
claims.rs

1//! Validated session-claim types.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use systemprompt_identifiers::{SessionId, UserId};
7use systemprompt_models::auth::UserType;
8
9#[derive(Debug, Clone)]
10pub struct ValidatedSessionClaims {
11    pub user_id: UserId,
12    pub session_id: SessionId,
13    pub user_type: UserType,
14    pub jti: String,
15    pub exp: i64,
16}