pai
    Preparing search index...

    Variable keychainConst

    keychain: {
        delete(id: string): void;
        get(id: string): string | null;
        set(id: string, label: string, value: string): boolean;
    } = ...

    Reads and writes pai's items in the macOS login Keychain through /usr/bin/security, under the service name pai.

    Type Declaration

    • delete: function
      • Removes the item saved under id, if any.

        Parameters

        • id: string

        Returns void

    • get: function
      • The secret saved under id, or null when there is none or the Keychain can't be read.

        Parameters

        • id: string

        Returns string | null

    • set: function
      • Saves value under id, replacing what was there. Returns false when the Keychain refuses, as it does when locked.

        Parameters

        • id: string
        • label: string
        • value: string

        Returns boolean