Iskra API Reference
    Preparing search index...

    Function scrubUrl

    • Redact the username, password and secret query parameters (authToken, password, sslpassword...) from a database URL so it is safe to log. Returns the scrubbed URL string, or undefined if parsing fails.

      e.g. postgres://user:pass@host:5432/db → postgres://:@host:5432/db libsql://db.turso.io?authToken=eyJ… → libsql://db.turso.io?authToken=***

      Parameters

      • url: string

      Returns string | undefined