Skip to main content

create_or_replace_register_code

Function create_or_replace_register_code 

Source
pub fn create_or_replace_register_code(
    conn: &Connection,
    name: &str,
    ttl_sec: i64,
) -> Result<String>
Expand description

Issue (or rotate) a one-shot register code for name. Returns the plaintext code; only the hash is persisted.