Skip to main content

Module token

Module token 

Source

Functionsยง

cmd_join
One-shot join subcommand: register username, receive token, write token file.
read_cursor
Read the cursor position from disk, returning None if the file is absent or empty.
token_file_path
Returns the canonical token file path: /tmp/room-<room_id>-<username>.token.
username_from_token
Look up the username associated with token by scanning stored token files for room_id.
write_cursor
Persist the cursor position to disk.