pub fn generate_key() -> Result<(String, String, String), ApiKeyError>Expand description
Generate a fresh API key. Returns (full_token, prefix, hash):
full_tokenโ{prefix}.{secret}to give to the userprefixโ 8-char hex prefix for the lookup columnhashโ argon2id hash of the secret for the password column
ยงErrors
ApiKeyError::Hash on argon2 failures (extremely rare).