Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication and session-lifecycle commands.

TRACES: UR-042 | IR-009, IR-014, JA-002 | DR-054

Structs§

AuthManagerWrapper
Wrapper for AuthManager to manage in Tauri state
SessionVerifierWrapper
Wrapper for SessionVerifier to manage in Tauri state

Functions§

auth_connect_to_server
Connect to a Jellyfin server and get server info
auth_get_session
Get current session
auth_initialize
Initialize the auth manager (call on app startup) Restores session from storage if available
auth_login
Login with username and password
auth_logout
Logout (clear session and call Jellyfin logout endpoint)
auth_reauthenticate
Re-authenticate with password (when session expired)
auth_set_session
Set current session (for restoration from storage)
auth_start_verification
Start background session verification
auth_stop_verification
Stop background session verification
auth_verify_session
Verify current session