pai
    Preparing search index...

    Function saveNamedKey

    • Saves a key by name, in the Keychain or a mode 600 file (see keychain). Refuses a name already in use unless replace is set, and anything that doesn't start with sk-phantom-.

      Parameters

      • env: Env
      • name: string
      • key: string
      • opts: { replace?: boolean } = {}

      Returns { id: string; name: string }

      The name, and the key's keyId.

      • id: string

        The key's id, as keyId computes it.

      • name: string

        The name the key was saved under.