Skip to main content

parse_api_token

Function parse_api_token 

Source
pub fn parse_api_token(token: &str) -> Option<(u64, &str)>
Expand description

Parse a token into (issued_at_unix, secret). Returns None for malformed tokens — including legacy plain-hex tokens without a timestamp, which the daemon then treats as stale and rotates out.