mise API - v0.0.0
    Preparing search index...

    Function token_matches

    • Compares a provided token against the expected one in constant time, so a mismatch reveals nothing through timing. Unequal lengths fail fast (and are not themselves secret).

      Parameters

      • expected: string

        The daemon's token.

      • provided: string

        The token a surface presented at attach.

      Returns boolean

      True when the tokens match exactly.