pub async fn session_actor(
pool: &PgPool,
token: &str,
) -> AppResult<Option<(Actor, DateTime<Utc>)>>Expand description
The user of a web session and when the session began (for the maximum
sign-in age of need-to-know groups); None for an unknown or expired
session or a deactivated user.