Crate modality_auth_token

Source
Expand description

Library relating to the handling of modality’s auth tokens:

  • Representation in memory
  • Stringy-hexy serialization
  • A tiny file format that pairs an auth token with a plaintext user name

Modules§

token_user_file
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§

AuthToken
AuthTokenHexString
A possibly-human-readable UTF8 encoding of an auth token as a series of lowercase case character pairs.

Enums§

AuthTokenStringDeserializationError
LoadAuthTokenError

Constants§

MODALITY_AUTH_TOKEN_ENV_VAR

Functions§

decode_auth_token_hex