Skip to main content

parse_session_env

Function parse_session_env 

Source
pub fn parse_session_env(env_value: &str) -> Option<(String, [u8; 32])>
Expand description

Parse a JOY_SESSION env var value produced by encode_session_env. Returns (sid_hex, ephemeral_private_bytes) or None on malformed input. Sessions with an embedded delegation private key (Crypt scope) parse successfully here too; use parse_session_env_full to access the delegation key.