Peertube_auth.SessionPeerTube session management.
This module handles session persistence and profile management for PeerTube authentication.
val get_current_profile : Eio.Fs.dir_ty Eio.Path.t -> stringget_current_profile fs returns the name of the current profile.
val set_current_profile : Eio.Fs.dir_ty Eio.Path.t -> string -> unitset_current_profile fs profile sets the current profile.
val list_profiles : Eio.Fs.dir_ty Eio.Path.t -> string listlist_profiles fs returns a list of all available profiles.
val load : Eio.Fs.dir_ty Eio.Path.t -> ?profile:string -> unit -> t optionload fs ?profile () loads a session from disk. Returns None if no session exists.
val save : Eio.Fs.dir_ty Eio.Path.t -> ?profile:string -> t -> unitsave fs ?profile session saves a session to disk.
val clear : Eio.Fs.dir_ty Eio.Path.t -> ?profile:string -> unit -> unitclear fs ?profile () removes the session file.
val create : server_url:string -> auth:auth_method -> unit -> tcreate ~server_url ~auth () creates a new session.
val server_url : t -> stringserver_url t returns the server URL.
val auth : t -> auth_methodauth t returns the authentication method.
val created_at : t -> stringcreated_at t returns the creation timestamp.