1e41f4b71Sopenharmony_ci# User Authentication Error Codes 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci> **NOTE** 4e41f4b71Sopenharmony_ci> 5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci## 12500001 Authentication Failed 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Error Message** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciAuthentication failed. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Possible Causes** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThe credential does not match the credential enrolled. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Solution** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciInitiate authentication again. 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci## 12500002 General Operation Error 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci**Error Message** 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ciGeneral operation error. 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Possible Causes** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci1. An error occurs when the NAPI layer parses parameters. 30e41f4b71Sopenharmony_ci2. The process of the user authentication service is not started. 31e41f4b71Sopenharmony_ci3. The proxy client fails to write data over IPC. 32e41f4b71Sopenharmony_ci4. The stub server fails to parse data over IPC. 33e41f4b71Sopenharmony_ci5. The driver service is not obtained. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Solution** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciCall the API again later or restart the device. 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci## 12500003 Authentication Canceled 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci**Error Message** 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ciAuthentication canceled. 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**Possible Causes** 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ciThe authentication operation has been canceled. 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci**Solution** 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ciInitiate the authentication again. 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci## 12500004 Authentication Timed Out 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ci**Error Message** 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ciAuthentication timeout. 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci**Possible Causes** 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ciThe authentication is not complete within the specified time. 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci**Solution** 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ciInitiate the authentication again. 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci## 12500005 Unsupported Authentication Type 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci**Error Message** 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ciThe authentication type is not supported. 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ci**Possible Causes** 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ci1. The input authentication type parameter is not supported. For example, if the authentication type passed in **getAvailableStatus** of the **userAuth** module is not **FACE** or **FINGERPRINT**, error code 12500005 is returned. 76e41f4b71Sopenharmony_ci2. The device does not support the authentication type. For example, if fingerprint authentication is initiated on a device that has no fingerprint sensor, error code 12500005 is returned. 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ci**Solution** 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ciCheck the authentication type parameter and call the API again. 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ci## 12500006 Unsupported Authentication Trust Level 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ci**Error Message** 85e41f4b71Sopenharmony_ci 86e41f4b71Sopenharmony_ciThe authentication trust level is not supported. 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ci**Possible Causes** 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ci1. The **authTrustLevel** value in **getAvailableStatus** or **getAuthInstance** of the **userAuth** module is not in the range [ATL1, ATL2, ATL3, ATL4]. 91e41f4b71Sopenharmony_ci2. The device does not support the authentication trust level. For example, if facial authentication for payment is initiated on a device that has only 2D cameras, error code 12500006 is returned. 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ci**Solution** 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ciCheck that the **authTrustLevel** passed in is within the value range, and the device supports the specified authentication trust level. 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ci## 12500007 Authentication Service Unavailable 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci**Error Message** 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ciAuthentication service is busy. 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci**Possible Causes** 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ciAnother authentication is initiated when the current authentication has not been finished yet. 106e41f4b71Sopenharmony_ci 107e41f4b71Sopenharmony_ci**Solution** 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ciInitiate authentication again later. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci## 12500009 Authentication Locked 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_ci**Error Message** 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ciAuthentication is locked out. 116e41f4b71Sopenharmony_ci 117e41f4b71Sopenharmony_ci**Possible Causes** 118e41f4b71Sopenharmony_ci 119e41f4b71Sopenharmony_ciThe number of authentication failures exceeds the limit. 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_ci**Solution** 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ciInitiate authentication later. 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ci## 12500010 Credential Not Enrolled 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci**Error Message** 128e41f4b71Sopenharmony_ci 129e41f4b71Sopenharmony_ciThe type of credential has not been enrolled. 130e41f4b71Sopenharmony_ci 131e41f4b71Sopenharmony_ci**Possible Causes** 132e41f4b71Sopenharmony_ci 133e41f4b71Sopenharmony_ciThe **authType** parameter set in **getAvailableStatus** of the **userAuth** module is **FACE**, but no facial credential is enrolled in the device. 134e41f4b71Sopenharmony_ci**start()** is called to initiate facial authentication, but no facial credential is enrolled in the device. 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ci**Solution** 137e41f4b71Sopenharmony_ci 138e41f4b71Sopenharmony_ciCheck that the related type of credential has been enrolled in the device. 139e41f4b71Sopenharmony_ci 140e41f4b71Sopenharmony_ci## 12500011 Switched to Custom Authentication 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci**Error Message** 143e41f4b71Sopenharmony_ci 144e41f4b71Sopenharmony_ciSwitched to the custom authentication process. 145e41f4b71Sopenharmony_ci 146e41f4b71Sopenharmony_ci**Possible Causes** 147e41f4b71Sopenharmony_ci 148e41f4b71Sopenharmony_ciThe authentication is canceled by the user, who tapped the authentication widget button to apply custom authentication. 149e41f4b71Sopenharmony_ci 150e41f4b71Sopenharmony_ci**Solution** 151e41f4b71Sopenharmony_ci 152e41f4b71Sopenharmony_ciInitiate the authentication again. 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ci## 12500013 Password Expired 155e41f4b71Sopenharmony_ci 156e41f4b71Sopenharmony_ci**Error Message** 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ciOperation failed because of PIN expired. 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ci**Possible Causes** 161e41f4b71Sopenharmony_ci 162e41f4b71Sopenharmony_ciThe authentication fails because the system lock screen password has expired. The error code 12500013 is returned if the lock screen password has expired when a PIN, fingerprint, or facial authentication is initiated. 163e41f4b71Sopenharmony_ci 164e41f4b71Sopenharmony_ci**Solution** 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ciInitiate an authentication again after the user sets a new lock screen password. 167e41f4b71Sopenharmony_ci 168e41f4b71Sopenharmony_ci## 12700001 Failed to Enroll Faces 169e41f4b71Sopenharmony_ci 170e41f4b71Sopenharmony_ci**Error Message** 171e41f4b71Sopenharmony_ci 172e41f4b71Sopenharmony_ciOperation failed. 173e41f4b71Sopenharmony_ci 174e41f4b71Sopenharmony_ci**Possible Causes** 175e41f4b71Sopenharmony_ci 176e41f4b71Sopenharmony_ci1. The facial authentication service is not started when **setSurfaceId()** of the **userAuth** module is called. 177e41f4b71Sopenharmony_ci2. The proxy client fails to write data over IPC. 178e41f4b71Sopenharmony_ci3. The stub server fails to parse data over IPC. 179e41f4b71Sopenharmony_ci4. An error occurs when the facial authentication driver is invoked. 180e41f4b71Sopenharmony_ci 181e41f4b71Sopenharmony_ci**Solution** 182e41f4b71Sopenharmony_ci 183e41f4b71Sopenharmony_ciCall the API again later or restart the device. 184