Set User Passcode
Sets or updates the passcode for a user account. The passcode is stored in encrypted form.Mutation
Input Parameters
Response
Returns
true if the passcode was successfully set, false otherwiseExample Request
Example Response
Verify User Passcode
Verifies that the provided passcode matches the user’s stored passcode.Mutation
Input Parameters
Encrypted passcode verification information
The passcode to verify, encrypted with the public key
The ID of the encryption key used to encrypt the passcode
The type of authentication. Must be
PASSCODE for this operationResponse
Returns
true if the passcode is correct, false otherwiseExample Request
Example Response
Set Transaction PIN
Sets or updates the transaction PIN for a user account. The PIN is stored in encrypted form and used to authorize sensitive transactions.Mutation
Input Parameters
Encrypted transaction PIN information
The user’s transaction PIN encrypted with the public key
The ID of the encryption key used to encrypt the PIN
The type of authentication. Must be
TRANSACTION_PIN for this operationResponse
Returns
true if the transaction PIN was successfully set, false otherwiseExample Request
Example Response
Verify Transaction PIN
Verifies that the provided transaction PIN matches the user’s stored PIN.Mutation
Input Parameters
Encrypted transaction PIN verification information
The transaction PIN to verify, encrypted with the public key
The ID of the encryption key used to encrypt the PIN
The type of authentication. Must be
TRANSACTION_PIN for this operationResponse
Returns
true if the transaction PIN is correct, false otherwiseExample Request
Example Response
Password Auth Types
ThePASSWORD_AUTH_TYPE enum defines the types of password authentication:
PASSCODE: User login passcodeTRANSACTION_PIN: Transaction authorization PIN
Security Considerations
- All passcodes and PINs must be encrypted client-side using the public key obtained from
generateClientEncryptionKeybefore being sent to the API - Always use the corresponding
keyIdwhen sending encrypted credentials - The service decrypts credentials server-side using the private key and stores them securely
- Never send plaintext passcodes or PINs over the network