@qualithm/device - v0.12.2
    Preparing search index...

    Type Alias CredentialStore

    Pluggable, restart-safe credential persistence.

    The default implementation is a crash-safe file store (createFileCredentialStore); embedded targets can supply their own backend (flash/NVS, secure element, keychain) by implementing this contract.

    type CredentialStore = {
        clear: () => Promise<void>;
        load: () => Promise<DeviceCredential | null>;
        save: (credential: DeviceCredential) => Promise<void>;
    }
    Index

    Properties

    Properties

    clear: () => Promise<void>

    Remove any persisted credential.

    load: () => Promise<DeviceCredential | null>

    Load the persisted credential, or null when none exists yet.

    save: (credential: DeviceCredential) => Promise<void>

    Persist the credential atomically (durable across power loss).