createTempClear(params: CreateClearParams)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Create an offline password clear code
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Clear parameters |
Return Value
Type: Promise<TempPasswordResult>
Offline clear code creation result
Error Code
| Error Code | Error Message |
|---|---|
1031 | Password name too long (over 20 characters) |
1044 | unlockBindingId not specified when not clearing all |
1038 | Cloud: duplicate password name (OFFLINE_PWD_NAME_REPEAT) |
1067 | Cloud: offline passwords exhausted for the period (OFFLINE_PWD_EXAUST_IN_PERIOD) |
1040 | Cloud: record not found (RECORD_NOT_EXIST) |