ping-identity
    Preparing search index...

    Interface DeviceRepository<T>

    Repository operations for a single device kind.

    Mirrors the native DeviceRepository<T> protocol (iOS) / interface (Android). Each DeviceClient property (oath, push, bound, profile, webAuthn) exposes a DeviceRepository instance parameterised with the appropriate device type.

    const repo: DeviceRepository<OathDevice> = client.oath;
    const devices = await repo.get();
    interface DeviceRepository<T> {
        delete(device: T): Promise<T>;
        get(): Promise<T[]>;
        update(device: T): Promise<T>;
    }

    Type Parameters

    Index

    Methods

    Methods

    • Updates a device on the server.

      Parameters

      • device: T

        The device with the updated field(s).

      Returns Promise<T>

      A promise resolving to the server's acknowledged copy of the device.

      Currently only the deviceName property is writable.

      DeviceClientError on not-found or validation errors.