PIN Update
PIN Flow
deviceChangePin is used to initiate the process of modifying or removing a device PIN. This operation requires user confirmation on the device, please ensure that the app has handled PIN and confirmation related UI events.
const callResult = await ukeySdk.deviceChangePin(connectId, requestParams);
Input Fields
remove-boolean; set this when the PIN should be removed instead of changed.
Reference Snippet
ukeySdk.deviceChangePin(connectId, {
remove: false,
});
Result
{
success: true,
payload: {
message: string
}
}
Errors
{
success: false,
payload: {
error: string, // Error message text
code: number // Error code value
}
}