Skip to main content

mint

Function mint 

Source
pub fn mint(secret: &str, sub: &str, nbf: Option<u64>, exp: u64) -> String
Expand description

An HS256 JWT over {sub, exp[, nbf]}. The header and claim order match jwt_signer.ts’s JSON.stringify output, so a token is byte-comparable with the test runtime’s.