initiateUpdateFlowForCredential
📡 initiateUpdateFlowForCredential
API
initiateUpdateFlowForCredential
APIThis API must be called in response to theonCredentialsAvailableForUpdate
event. It initiates the update flow for a user-selected credential from the provided options.**
📋 Purpose
Initiates the update flow for a specified credential (as received from onCredentialsAvailableForUpdate
).
📥 Parameters
Name | Type | Required | Description |
---|---|---|---|
credType | String | ✅ | One of: "Password" , "Pattern" , "SecQA" |
🔁 Credential-Specific Behavior
Credential | Event Triggered | Required API |
---|---|---|
Password | getPassword with mode: RDNA_OP_UPDATE_CREDENTIALS (2) | updatePassword() with mode: RDNA_OP_UPDATE_CREDENTIALS (2) |
Pattern | Pattern update screen shown by SDK | (No API required) |
SecQA | getSecretAnswer with mode: RDNA_OP_UPDATE_CREDENTIALS (2) | setSecretQuestionAnswer() with mode: RDNA_OP_UPDATE_CREDENTIALS (2) |
💬 Sample Code by Platform
React Native
RdnaClient.initiateUpdateFlowForCredential("Password", (syncResponse) => {
console.log(syncResponse);
});
Flutter
rdnaClient.initiateUpdateFlowForCredential("Password");
Cordova
RdnaClient.initiateUpdateFlowForCredential(
successCallback,
errorCallback,
["Password"]
);
Native Android
RDNAError err = rdna.initiateUpdateFlowForCredential("Password");
Native iOS (Objective-C)
[rdnaInstance initiateUpdateFlowForCredential:@"Password"];
Updated 2 months ago