Reference

PaspoScope, PaspoAuthResult, and the full error code table.

PaspoScope

The profile data requested from the user:

ValueReturned to your server
PHONESPhone numbers
EMAILSE-mail addresses
NATIONAL_IDNational identity document number
PASPO_IDA permanent user identifier in Paspo ID

PaspoAuthResult

A sealed type covering every outcome of authenticate:

ResultFieldsAction
SuccessauthCode: StringSend authCode to your server
Cancelled–The user dismissed the consent screen; typically no error UI is needed
NotInstalled–Paspo ID is not installed; the SDK has opened the Play Store
Failureerror: PaspoClientError, message: String?Present an error. message is intended for logs, not for the user

Cancelled and NotInstalled are returned as dedicated branches and never appear inside Failure.

Errors

CodeConstantMeaning
100UNKNOWNUnknown error
101INVALID_REQUESTMalformed request or corrupted data
102SERVICE_UNAVAILABLEPaspo ID is temporarily unavailable
103CANCELLEDThe user cancelled the operation
110SESSION_EXPIREDThe session expired; restart with a new nonce
111PACKAGE_VERIFICATION_FAILEDThe application failed Paspo ID's signature/package verification. Ensure both are registered during onboarding
120ACCESS_DENIEDThe user denied access
121IDENTITY_NOT_VERIFIEDThe user's identity is not verified in Paspo ID
122ATTEMPTS_EXCEEDEDToo many attempts
123ACTION_NOT_ALLOWEDNot available for this user
130AUTH_METHOD_UNAVAILABLEThe confirmation method is temporarily unavailable
131UNSUPPORTED_AUTH_METHODThe confirmation method is not supported
140PASPO_NOT_INSTALLEDPaspo ID is not installed
141CRYPTO_ERROREncryption or decryption error; restart the flow

The SDK clears its cryptographic state on any error, so no additional cleanup() is required afterwards.