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
credTypeStringāœ…One 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"];