Skip to main content

mint

Function mint 

Source
pub fn mint(ctx: &Ctx, credentials: &AppCredentials) -> Result<String, String>
Expand description

Mint a short-lived RS256 JWT for the App: iss is the App id, iat sits sixty seconds back against clock drift, and exp nine minutes out, inside the forge’s ten-minute cap.

§Errors

A failure is a one-line detail for the caller to report — an observation maps it to unknown, an apply to a refusal — never a token that might be wrong.