Skip to main content

mint_code

Function mint_code 

Source
pub async fn mint_code(
    pool: &SqlitePool,
    creator_did: &str,
    ttl_secs: i64,
) -> Result<String>
Expand description

Mint a new active invite code owned by creator_did, expiring ttl_secs from now. Returns the generated code string.