Expand description
Profile commands: who can use this device, and how they get in.
The rule that shapes this whole module: switching is not logging out.
auth_logout calls Jellyfin’s logout endpoint,
which invalidates the token server-side — so a switch built on it would make
every switch back cost a password, which is the problem this feature exists
to solve. Nothing here calls it.
TRACES: UR-082, UR-083, UR-084 | DR-267, DR-268, DR-269, DR-270, DR-274
Constants§
- ASK_
ON_ 🔒START_ KEY - Settings key for “ask who’s watching on start”.
Functions§
- active_
user_ 🔒id - adopt_
session 🔒 - Make the newly-active profile the session the rest of the backend acts as.
- ask_
on_ 🔒start - current_
server 🔒 - The server this device is signed in to, as
(server_id, server_url). - execute_
switch 🔒 - Run a switch plan.
- profiles_
add - Add another account from the current server to this device.
- profiles_
get_ ask_ on_ start - Read the “ask who’s watching on start” setting.
- profiles_
list - List the accounts this device knows for the current server.
- profiles_
remove - Forget a profile on this device.
- profiles_
set_ ask_ on_ start - Turn “ask who’s watching on start” on or off.
- profiles_
set_ pin - Set, change, or clear a profile’s PIN.
- profiles_
startup_ target - Whether startup should resume an account or ask who is watching.
- profiles_
unlock - Enter a profile, with its PIN if it has one.
- profiles_
unlock_ with_ password - Enter a profile with its Jellyfin password, for someone who has forgotten their PIN.
- save_
token 🔒 - service 🔒
- set_
active_ 🔒user