Module token_user_file

Source
Expand description

A tiny UTF8 file format consisting of the lowercase hex-string representation of an auth token followed by a newline followed optionally by user identity string content

Structs§

UserAuthTokenFileContents

Enums§

TokenUserFileReadError

Constants§

REFLECTOR_AUTH_TOKEN_DEFAULT_FILE_NAME
A UTF8 file. The first line contains the auth token hex string representation and a line break. All (optional) subsequent content represents the authorizing user identity
USER_AUTH_TOKEN_FILE_NAME
A UTF8 file. The first line contains the auth token hex string representation and a line break. All (optional) subsequent content represents the user identity

Functions§

read_user_auth_token_file
Expects a UTF8 file. The first line contains the auth token hex string representation followed by a line break. If present, all subsequent content represents the user identity
write_user_auth_token_file