Skip to Content
このページの内容

deviceChangePin

デバイスの PIN を変更

ユーザーの要求後にデバイスの PIN 変更フローを開きます。保護された手順はユーザーがデバイス上で行います。このフローの代わりに実際のデバイス PIN を収集したり、ログに記録したりしてはいけません。

const result = await HardwareSDK.deviceChangePin(connectId, params);

パラメーター

任意の共通パラメーター

  • remove - 任意 boolean. false は PIN を変更します。 true は対応する Protocol V1 デバイスで PIN の削除を要求します。Protocol V2 は次を拒否します: remove: true.

例

const result = await HardwareSDK.deviceChangePin(connectId, { remove: false }); if (!result.success) throw new Error(result.payload.error);

結果

{ success: true, payload: { message: string } }

エラー

{ success: false, payload: { error: string, // error message code?: string | number // error code } }
最終更新日