@maschinenlesbar.org/regionalatlas-cli
    Preparing search index...

    Function redactQueryTokens

    • text with the value of every secret query parameter replaced by *** (?token=abc → ?token=***), and every listed token value (as queryTokensIn returns them, or decoded) replaced wherever it occurs alone — a server's "invalid token abc" echoes it without the parameter name. A listed value is replaced whole in its token= or access_token= form first, with or without the ?/& a server's echo may drop: the pattern ends a value at a space, and a token sent percent-encoded (ab%20cd) is echoed decoded, so the pattern alone replaced only its first word and left the rest. Values shorter than six characters are only redacted in that form; with bare: false (the CLI's stdout, where a bare value is data) no value is replaced alone.

      Parameters

      • text: string
      • tokens: readonly string[] = []
      • options: { bare?: boolean } = {}

      Returns string