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(): Promise<Result<GeneratedDeviceKeyResult, GenerateDeviceKeyError>>

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