feat(auth): add active sessions management
Some checks failed
CI / test (push) Failing after 33s

- store refresh session metadata in redis (ip/user-agent/created_at)

- add auth APIs: list sessions, revoke one, revoke all

- add web privacy UI for active sessions
This commit is contained in:
2026-03-08 11:41:03 +03:00
parent da73b79ee7
commit e685a38be6
7 changed files with 309 additions and 11 deletions

View File

@@ -88,6 +88,13 @@ export interface TokenPair {
token_type: string;
}
export interface AuthSession {
jti: string;
created_at: string;
ip_address?: string | null;
user_agent?: string | null;
}
export interface UserSearchItem {
id: number;
name: string;