Skip to main content

mint_container_token

Function mint_container_token 

Source
pub fn mint_container_token(
    secret: &str,
    service_name: &str,
    container_id: &str,
    ttl: Duration,
) -> Result<String, String>
Expand description

Mint a scoped JWT for a container.

ยงErrors

Returns an error string if the system clock is unavailable or JWT encoding fails.