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

    Function mintOwnerToken

    • Mints the owner token for a site that has none, stores its hash and returns the plaintext, which the caller shows once. Returns undefined when a token already exists: a repeat claim must not hand out a credential it no longer holds. A separate credential from PW_DIAGNOSTICS, which also opens /sql, /restore and /php.

      Parameters

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

      Returns Promise<string | undefined>