systemprompt-security 0.2.0

Security module for systemprompt.io - authentication, authorization, JWT, and token extraction
Documentation
1
2
3
4
5
6
7
8
9
use systemprompt_identifiers::{SessionId, UserId};
use systemprompt_models::auth::UserType;

#[derive(Debug, Clone)]
pub struct ValidatedSessionClaims {
    pub user_id: UserId,
    pub session_id: SessionId,
    pub user_type: UserType,
}