Skip to main content

resolve_agent

Function resolve_agent 

Source
pub fn resolve_agent(
    req: &ForgeRequest,
    token_key: &[u8],
    now: u64,
) -> ForgeAgent
Expand description

Resolve a ForgeAgent from the request’s Authorization header. token_key is the forge instance HMAC key; now is the current Unix time (injected for deterministic testing).