Skip to main content

create_token

Function create_token 

Source
pub fn create_token(
    secret: &str,
    agent_id: &str,
    admin: bool,
    expiry_hours: u64,
) -> String
Expand description

Create a signed JWT for the given agent.