initiateUpdateFlowForCredential

📡 initiateUpdateFlowForCredential API

This 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

NameTypeRequiredDescription
credTypeStringOne of: "Password", "Pattern", "SecQA"

🔁 Credential-Specific Behavior

CredentialEvent TriggeredRequired API
PasswordgetPassword with mode: RDNA_OP_UPDATE_CREDENTIALS (2)updatePassword() with mode: RDNA_OP_UPDATE_CREDENTIALS (2)
PatternPattern update screen shown by SDK(No API required)
SecQAgetSecretAnswer 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"];