Skip to main content

create_token_with

Function create_token_with 

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

Create a signed HS256 JWT with every optional claim.