fix(auth): per-session reauth and admin token lifecycle

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 19:40:08 -03:00
1 parent c2d352ae30
commit a90ff81650
3 files changed
+247 -47

No files matched your search

+2 -2
View File
@@ -46,8 +46,6 @@ pub struct User {
pub auth_epoch: u64,
/// Set by `reset_admin`: no ordinary session until the password changes.
pub must_change_password: bool,
/// Unix seconds of the last `reauthenticate`; 0 if never.
pub last_reauth: u64,
}
impl std::fmt::Debug for User {
@@ -71,6 +69,8 @@ pub struct Session {
pub created_at: u64,
pub last_seen: u64,
pub expires_at: u64,
/// Unix seconds of the last `reauthenticate` of this session; 0 if never.
pub last_reauth: u64,
}
impl std::fmt::Debug for Session {