Skip to main content

current_session_id

Function current_session_id 

Source
pub async fn current_session_id(db: &Db, token: &str) -> Result<Option<i64>>
Expand description

Resolve the cookie token to its session_id (active sessions only). Used by the active-sessions UI to mark which row is the current device, and by UserExceptCurrent callers.