Skip to main content

find_minted_token

Function find_minted_token 

Source
pub fn find_minted_token(
    before: &[ApiToken],
    after: &[ApiToken],
    label: &str,
) -> Option<Uuid>
Expand description

Find the one token carrying label that was not in before.

generate_api_token returns only the bearer, so the token id comes from a second listing. Anything other than exactly one new match is ambiguous and the token is left alone (the planner revokes unused orphans after the grace period).