drupflare/worker - v1.0.0
    Preparing search index...

    Function ensureHashSalt

    • Reads this site's hash salt, minting and persisting one the first time.

      Idempotent by construction: a second call returns the stored value, so a remount keeps every session and every unexpired one-time login link valid. That is the whole reason it is persisted rather than derived per boot.

      Parameters

      • store: SecretStore
      • mint: () => string = randomKeyBase64

        injected so a test can assert the stored value rather than that one exists

      Returns string