Skip to main content

usable_api_token_hex

Function usable_api_token_hex 

Source
pub fn usable_api_token_hex(raw: &str) -> Option<&str>
Expand description

Return trimmed hex when it is usable as a tip Status API bearer.

Accepts HORTO_API_TOKEN=<hex> or bare hex. Rejects empty, non-hex, and anything shorter than MIN_API_TOKEN_HEX_LEN.