Error Code
When working with asynchronous functions in CredentialServicesKit, the framework employs the VIDAResultBlock typealias to return results. This typealias has the signature VIDAResultBlock = ([String: Any]) -> Void.
In the event of an error, the result NSDictionary will include an "error" key of type NSError. The NSError object will have the VIDAErrorCode set as the error code and localizedDescription set to a user-facing error string. This standardized error structure enables developers to effectively handle and process errors returned by the framework.
Error Code
Here is a table listing the error codes and their corresponding descriptions
20001
Message signing failed
20002
Failed to store key
20003
Failed to update key
20004
Failed to load key
20005
Failed to delete key
20006
No credentials found
20007
Failed to store signed signatures
20008
Failed to load signed signatures
20009
Failed to send signed signatures
20010
Signing with biometry is disabled
20011
Signing with biometry was canceled
20012
Network error occurred
20013
Wrong password provided
20014
No signatures to send
20015
Embed token is wrong
20016
Biometry is not available
20017
Registered presence is different than required
20018
Token has expired
20019
Credential not found
20020
Biometry reset from system
Last updated
