Skip to main content

list_active_for_user

Function list_active_for_user 

Source
pub async fn list_active_for_user(db: &Db, user_id: i64) -> Result<Vec<Session>>
Expand description

List a user’s currently-active sessions, ordered by last_seen descending so the active-sessions UI surfaces the most recently used row first. Excludes revoked + expired rows.