light-mode-image
Learn
Functions

generateDeviceKey

Generate a device key for provisioning a new mDoc.

Generate a device key for provisioning a new mDoc.

Signature

function generateDeviceKey(
  options?: DeviceKeyPopOptions
): Promise<Result<GeneratedDeviceKeyResult, GenerateDeviceKeyError>>

Parameters

Prop

Type

Returns

Promise<Result<GeneratedDeviceKeyResult, GenerateDeviceKeyError>>

The result of the device key generation.

Throws

InvalidParams if the provided arguments are missing or invalid.

MobileCredentialHolderErrorType.SdkNotInitialized if the SDK has not been initialized.

How would you rate this page?

On this page